fusenapi/model/gmodel/fs_migration_gen.go

20 lines
440 B
Go
Raw Permalink 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-08-23 07:08:45 +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"}
}