add users
This commit is contained in:
@ -12,7 +12,7 @@ func Init() *gorm.DB {
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
db.AutoMigrate(&Post{}, &Comment{})
|
||||
db.AutoMigrate(&Post{}, &Comment{}, &User{}, &InvalidJWT{})
|
||||
|
||||
db.Save(&Post{
|
||||
ID: 1,
|
||||
|
Reference in New Issue
Block a user