init: 1.0.0
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package announcement
|
||||
|
||||
import "time"
|
||||
|
||||
type Announcement struct {
|
||||
Id int64 `gorm:"primaryKey"`
|
||||
Title string `gorm:"type:varchar(255);not null;default:'';comment:Title"`
|
||||
Content string `gorm:"type:text;comment:Content"`
|
||||
Show *bool `gorm:"type:tinyint(1);not null;default:0;comment:Show"`
|
||||
Pinned *bool `gorm:"type:tinyint(1);not null;default:0;comment:Pinned"`
|
||||
Popup *bool `gorm:"type:tinyint(1);not null;default:0;comment:Popup"`
|
||||
CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
|
||||
UpdatedAt time.Time `gorm:"comment:Update Time"`
|
||||
}
|
||||
|
||||
func (Announcement) TableName() string {
|
||||
return "announcement"
|
||||
}
|
||||
Reference in New Issue
Block a user