16 lines
666 B
Go
16 lines
666 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// SuperArticle 超级个体发布的文章(小程序端)
|
|
type SuperArticle struct {
|
|
ID uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
UserID string `gorm:"column:user_id;size:50;index:idx_super_articles_user_time" json:"userId"`
|
|
Title string `gorm:"column:title;size:200" json:"title"`
|
|
Content string `gorm:"column:content;type:text" json:"content"`
|
|
CreatedAt time.Time `gorm:"column:created_at;index:idx_super_articles_user_time" json:"createdAt"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
|
|
}
|
|
|
|
func (SuperArticle) TableName() string { return "super_articles" }
|