Add --clean flag to control file deletion, default preserves existing models
This commit is contained in:
31
app/model/dbmodel/ps_reassurance.go
Normal file
31
app/model/dbmodel/ps_reassurance.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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 dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsReassurance = "ps_reassurance"
|
||||
|
||||
// PsReassurance mapped from table <ps_reassurance>
|
||||
type PsReassurance struct {
|
||||
IDReassurance int32 `gorm:"column:id_reassurance;primaryKey;autoIncrement:true" json:"id_reassurance"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
FileName string `gorm:"column:file_name;not null" json:"file_name"`
|
||||
}
|
||||
|
||||
// TableName PsReassurance's table name
|
||||
func (*PsReassurance) TableName() string {
|
||||
return TableNamePsReassurance
|
||||
}
|
||||
|
||||
var PsReassuranceCols = struct {
|
||||
IDReassurance gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
FileName gormcol.Field
|
||||
}{
|
||||
IDReassurance: gormcol.Field{}.Set((&PsReassurance{}).TableName(), "id_reassurance"),
|
||||
IDShop: gormcol.Field{}.Set((&PsReassurance{}).TableName(), "id_shop"),
|
||||
FileName: gormcol.Field{}.Set((&PsReassurance{}).TableName(), "file_name"),
|
||||
}
|
||||
Reference in New Issue
Block a user