feat: migrated prisma -> gorm

This commit is contained in:
Florian Sylvain committed 2023-08-06 19:13:49 +02:00
1 parent 195c247235
commit e258dccc1c
14 files changed
+149 -166

No files matched your search

@@ -0,0 +1,15 @@
package models
import (
"gorm.io/gorm"
"time"
)
type Article struct {
gorm.Model
ID uint32 `gorm:"primary_key;auto_increment;not_null"`
Title string
Body string
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}