package models import "time" // PlatformNotebook 平台记事本表: yz_platform_notebook type PlatformNotebook struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Title string `orm:"column(title);size(255)" json:"title"` Content string `orm:"column(content);type(longtext);null" json:"content"` UserID *uint64 `orm:"column(user_id);null" json:"user_id"` UserName *string `orm:"column(user_name);size(100);null" json:"user_name"` IsDeleted int8 `orm:"column(is_deleted);default(0)" json:"is_deleted"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *PlatformNotebook) TableName() string { return "yz_platform_notebook" }