fusenapi/model/gmodel/fs_migration_gen.go

20 lines
427 B
Go
Raw Normal View History

2023-06-19 01:53:35 +00:00
package gmodel
2023-06-16 11:04:13 +00:00
import (
"gorm.io/gorm"
)
// fs_migration 版本库
type FsMigration struct {
Version string `gorm:"primary_key;default:'';" json:"version"` // 版本信息
2023-06-16 11:29:48 +00:00
ApplyTime *int64 `gorm:"default:0;" json:"apply_time"` //
2023-06-16 11:04:13 +00:00
}
type FsMigrationModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsMigrationModel(db *gorm.DB) *FsMigrationModel {
return &FsMigrationModel{db: db, name: "fs_migration"}
}