1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: not creating language mappings table due to broken type definition in users model (resolve #69)

chore: introduce foreign key constraints
This commit is contained in:
Ferdinand Mütsch
2020-11-03 10:02:39 +01:00
parent 1224024913
commit b4d2ee7d16
6 changed files with 20 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ type User struct {
Password string `json:"-"`
CreatedAt CustomTime `gorm:"type:timestamp; default:CURRENT_TIMESTAMP"`
LastLoggedInAt CustomTime `gorm:"type:timestamp; default:CURRENT_TIMESTAMP"`
BadgesEnabled bool `json:"-" gorm:"not null; default:false; type: bool"`
BadgesEnabled bool `json:"-" gorm:"default:false; type:bool"`
}
type Login struct {