table post migrated to DB

This commit is contained in:
2024-02-21 18:40:49 -06:00
parent 06094f05b3
commit 7bd744339a
3 changed files with 24 additions and 0 deletions

9
models/postModel.go Normal file
View File

@@ -0,0 +1,9 @@
package models
import "gorm.io/gorm"
type Post struct {
gorm.Model
Title string
Body string
}