table post migrated to DB
This commit is contained in:
9
models/postModel.go
Normal file
9
models/postModel.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Post struct {
|
||||
gorm.Model
|
||||
Title string
|
||||
Body string
|
||||
}
|
||||
Reference in New Issue
Block a user