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

10 lines
234 B
Go

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