fix bug and add mysql driver

This commit is contained in:
2022-09-18 16:17:25 +08:00
parent 3dd53caea4
commit 5296272dc3
12 changed files with 263 additions and 23 deletions

View File

@@ -25,7 +25,7 @@ import (
)
type User struct {
ID uuid.UUID `gorm:"column:id;type:bytes;size:36;primaryKey"`
ID uuid.UUID `gorm:"column:id;type:string;size:36;primaryKey"`
CreatedAt time.Time
UpdatedAt time.Time
Email string `gorm:"size:64;uniqueIndex:email_idx"`