add go gorm chi postgres starter

This commit is contained in:
2024-06-13 02:06:01 +02:00
parent 0895bb8cfd
commit cfe65135d8
6 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package model
import "gorm.io/gorm"
type User struct {
gorm.Model
Name string
Email string `gorm:"unique"`
Password string
Phone *string // Nullable
}