fusenapi/model/gmodel_gen/fs_migration_gen.go
2023-06-19 10:12:58 +08:00

15 lines
383 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 }
func NewFsMigrationModel(db *gorm.DB) *FsMigrationModel { return &FsMigrationModel{db} }