add model identities and restore httpx router
This commit is contained in:
@@ -3,11 +3,14 @@ package models
|
||||
import "time"
|
||||
|
||||
type SenlinAgentTaskShare struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
TaskID uint `gorm:"index;not null"`
|
||||
ObjectType string `gorm:"not null"`
|
||||
ObjectID uint `gorm:"not null"`
|
||||
CreatedAt time.Time
|
||||
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 (SenlinAgentTaskShare) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user