21 lines
591 B
Go
21 lines
591 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SaProjectChannel struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
Identity string `gorm:"type:char(36);uniqueIndex"`
|
|
ProjectID uint `gorm:"index;not null"`
|
|
ProjectIdentity string `gorm:"type:char(36);index"`
|
|
Title string `gorm:"not null"`
|
|
Icon string `gorm:"not null;default:link"`
|
|
URL string `gorm:"not null"`
|
|
SortOrder int `gorm:"not null;default:0"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (SaProjectChannel) TableName() string {
|
|
return "sa_project_channels"
|
|
}
|