2026-07-18 21:58:15 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
type SaTaskShare struct {
|
2026-07-19 00:06:21 +08:00
|
|
|
ID uint `gorm:"primaryKey"`
|
|
|
|
|
Identity string `gorm:"type:char(36);uniqueIndex"`
|
|
|
|
|
TaskID uint `gorm:"index;not null"`
|
|
|
|
|
TaskIdentity string `gorm:"type:char(36);index"`
|
|
|
|
|
ObjectType string `gorm:"not null"`
|
|
|
|
|
ObjectID uint `gorm:"not null;index"`
|
|
|
|
|
ObjectIdentity string `gorm:"type:char(36);index"`
|
|
|
|
|
CreatedAt time.Time
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|
|
|
|
|
|
2026-07-23 14:30:17 +08:00
|
|
|
func (SaTaskShare) TableName() string {
|
|
|
|
|
return "sa_task_shares"
|
2026-07-18 21:58:15 +08:00
|
|
|
}
|