init: 1.0.0

This commit is contained in:
Chang lue Tsen
2025-04-25 12:08:29 +09:00
commit 8addcc584b
1031 changed files with 76472 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package ads
import "time"
type Ads struct {
Id int64 `gorm:"primaryKey"`
Title string `gorm:"type:varchar(255);default:'';not null;comment:Ads title"`
Type string `gorm:"type:varchar(255);default:'';not null;comment:Ads type"`
Content string `gorm:"type:text;comment:Ads content"`
Description string `gorm:"type:text;comment:Ads descriptor"`
TargetURL string `gorm:"type:varchar(512);default:'';comment:Ads target url"`
StartTime time.Time `gorm:"type:datetime;comment:Ads start time"`
EndTime time.Time `gorm:"type:datetime;comment:Ads end time"`
Status int `gorm:"type:TINYINT;default:0;comment:Ads status,0 disable,1 enable"`
CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
UpdatedAt time.Time `gorm:"comment:Update Time"`
}
func (Ads) TableName() string {
return "ads"
}