2026-07-18 21:58:15 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
type SaProject struct {
|
2026-07-19 00:06:21 +08:00
|
|
|
ID uint `gorm:"primaryKey"`
|
|
|
|
|
Identity string `gorm:"type:char(36);uniqueIndex"`
|
2026-07-22 01:24:41 +08:00
|
|
|
OwnerID uint `gorm:"index;not null"`
|
2026-07-19 00:06:21 +08:00
|
|
|
OwnerIdentity string `gorm:"type:char(36);index"`
|
|
|
|
|
Name string `gorm:"not null"`
|
2026-07-22 01:24:41 +08:00
|
|
|
Identifier string `gorm:"index"`
|
2026-07-21 00:46:09 +08:00
|
|
|
Icon string
|
|
|
|
|
Background string
|
2026-07-19 00:06:21 +08:00
|
|
|
Description string
|
|
|
|
|
CreatedAt time.Time
|
|
|
|
|
UpdatedAt time.Time
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
func (SaProject) TableName() string {
|
|
|
|
|
return "sa_projects"
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|