package models

import "time"

type SenlinAgentInboxItem struct {
	ID                uint   `gorm:"primaryKey"`
	Identity          string `gorm:"type:char(36);uniqueIndex"`
	ProjectID         uint   `gorm:"index;not null"`
	ProjectIdentity   string `gorm:"type:char(36);index"`
	CreatedBy         uint   `gorm:"index;not null"`
	CreatedByIdentity string `gorm:"type:char(36);index"`
	SourceType        string `gorm:"not null"`
	Title             string
	Body              string
	Status            string `gorm:"not null;default:open"`
	ConfirmedCount    int    `gorm:"not null;default:0"`
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

func (SenlinAgentInboxItem) TableName() string {
	return "senlin_agent_inbox_items"
}
