Remove Table field from Cols, use GORM conventions
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
// 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 TableNamePsImageLang = "ps_image_lang"
|
||||
|
||||
// PsImageLang mapped from table <ps_image_lang>
|
||||
type PsImageLang struct {
|
||||
IDImage int32 `gorm:"column:id_image;primaryKey;index:id_image,priority:1" json:"id_image"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Legend *string `gorm:"column:legend" json:"legend"`
|
||||
}
|
||||
|
||||
// TableName PsImageLang's table name
|
||||
func (*PsImageLang) TableName() string {
|
||||
return TableNamePsImageLang
|
||||
}
|
||||
|
||||
var PsImageLangCols = struct {
|
||||
IDImage gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Legend gormcol.Field
|
||||
}{
|
||||
IDImage: gormcol.Field{Table: TableNamePsImageLang, Column: "id_image"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsImageLang, Column: "id_lang"},
|
||||
Legend: gormcol.Field{Table: TableNamePsImageLang, Column: "legend"},
|
||||
}
|
||||
Reference in New Issue
Block a user