fusenapi/model/gmodel/fs_migration_gen.go
laodaming b91c8d75f0 fix
2023-08-23 15:08:45 +08:00

20 lines
440 B
Go

package gmodel
import (
"gorm.io/gorm"
)
// fs_migration 版本库
type FsMigration struct {
Version string `gorm:"primary_key;default:'';" json:"version"` // 版本信息
ApplyTime *int64 `gorm:"default:0;" json:"apply_time"` // 应用时间
}
type FsMigrationModel struct {
db *gorm.DB
name string
}
func NewFsMigrationModel(db *gorm.DB) *FsMigrationModel {
return &FsMigrationModel{db: db, name: "fs_migration"}
}