add users

This commit is contained in:
u80864958
2025-04-30 16:41:30 +02:00
parent f4adfb6a62
commit eed1718a7e
17 changed files with 538 additions and 60 deletions

View File

@ -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,