2023-06-16 10:52:24 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
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 10:52:24 +00:00
|
|
|
}
|
|
|
|
type FsMigrationModel struct{ db *gorm.DB }
|
|
|
|
|
|
|
|
func NewFsMigrationModel(db *gorm.DB) *FsMigrationModel { return &FsMigrationModel{db} }
|