19 lines
493 B
Go
19 lines
493 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SaTaskShare struct {
|
|
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
|
|
}
|
|
|
|
func (SaTaskShare) TableName() string {
|
|
return "sa_task_shares"
|
|
}
|