2026-07-18 21:58:15 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
type SaInboxItem struct {
|
2026-07-19 00:06:21 +08:00
|
|
|
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"`
|
2026-07-21 18:57:38 +08:00
|
|
|
ConfirmedCount int `gorm:"not null;default:0"`
|
2026-07-19 00:06:21 +08:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
UpdatedAt time.Time
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
func (SaInboxItem) TableName() string {
|
|
|
|
|
return "sa_inbox_items"
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|