mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:13:23 +00:00
27 lines
1.6 KiB
Go
27 lines
1.6 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNameMigration = "migrations"
|
|
|
|
// Migration mapped from table <migrations>
|
|
type Migration struct {
|
|
IDMigration int32 `gorm:"column:id_migration;primaryKey;autoIncrement:true;comment:surrogate key" json:"id_migration"` // surrogate key
|
|
Name string `gorm:"column:name;comment:migration name, unique" json:"name"` // migration name, unique
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:date migrated or rolled back" json:"created_at"` // date migrated or rolled back
|
|
Statements string `gorm:"column:statements;comment:SQL statements for this migration" json:"statements"` // SQL statements for this migration
|
|
RollbackStatements string `gorm:"column:rollback_statements;comment:SQL statment for rolling back migration" json:"rollback_statements"` // SQL statment for rolling back migration
|
|
Status string `gorm:"column:status;comment:update indicates it is a normal migration while rollback means this migration is rolled back" json:"status"` // update indicates it is a normal migration while rollback means this migration is rolled back
|
|
}
|
|
|
|
// TableName Migration's table name
|
|
func (*Migration) TableName() string {
|
|
return TableNameMigration
|
|
}
|