🎨 优化model和日志,完善配置文件
This commit is contained in:
@@ -9,12 +9,12 @@ import (
|
||||
// 初始化数据库表
|
||||
func databaseTable() {
|
||||
dbs := []any{
|
||||
new(entity.User),
|
||||
new(entity.Category),
|
||||
new(entity.Problem),
|
||||
new(entity.ProblemCategory),
|
||||
new(entity.Submit),
|
||||
new(entity.UserBasic),
|
||||
new(entity.TestCase),
|
||||
new(entity.CategoryBasic),
|
||||
new(entity.ProblemCategory),
|
||||
//new(entity.ProblemBasic),
|
||||
//new(entity.SubmitBasic),
|
||||
}
|
||||
|
||||
if err := client.MySQL.AutoMigrate(dbs...); err != nil {
|
||||
|
Reference in New Issue
Block a user