Files
Mycontent/soul-api/internal/model/super_article.go
2026-04-23 18:14:06 +08:00

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" }