feat: draft/online post field #26
This commit is contained in:
1 parent
0759ab6d70
commit
c69876a704
11 files changed
+111
-13
No files matched your search
@@ -11,6 +11,7 @@ type Post struct {
|
||||
Title string
|
||||
Body string
|
||||
Images []*Image `gorm:"many2many:post_images;"`
|
||||
IsOnline bool `gorm:"not_null;default:false"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
||||
}
|
||||
Reference in new issue
Block a user