tiny-url-ex/service/model/article.go

11 lines
246 B
Go
Raw Permalink Normal View History

package model
// Article representation of an article in storage
type Article struct {
ID uint `json:"article_id" gorm:"primary_key"`
Author uint `json:"author"`
Title string `json:"title"`
Body string `json:"body"`
Score int
}