2025-04-22 15:46:48 +08:00

24 lines
371 B
Go

package model
import (
"admin/internal/db"
"gorm.io/gorm"
"time"
)
func init() {
db.RegisterTableModels(Notice{})
}
type Notice struct {
ID int `gorm:"primarykey"`
ServerIDs []int `gorm:"type:json;serializer:json"`
Content string
StartAt int64
EndAt int64
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}