Replace gorm.io/gen header with gormcol
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
// 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 (
|
||||
"time"
|
||||
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const TableNameB2bLanguage = "b2b_language"
|
||||
|
||||
// B2bLanguage mapped from table <b2b_language>
|
||||
type B2bLanguage struct {
|
||||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||||
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
|
||||
UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_language_deleted_at,priority:1" json:"deleted_at"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"`
|
||||
LangCode string `gorm:"column:lang_code;not null" json:"lang_code"`
|
||||
DateFormat string `gorm:"column:date_format;not null" json:"date_format"`
|
||||
DateFormatShort string `gorm:"column:date_format_short;not null" json:"date_format_short"`
|
||||
Rtl bool `gorm:"column:rtl;not null" json:"rtl"`
|
||||
IsDefault bool `gorm:"column:is_default;not null" json:"is_default"`
|
||||
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
||||
Flag string `gorm:"column:flag;not null" json:"flag"`
|
||||
Product *PsProduct
|
||||
}
|
||||
|
||||
// TableName B2bLanguage's table name
|
||||
func (*B2bLanguage) TableName() string {
|
||||
return TableNameB2bLanguage
|
||||
}
|
||||
|
||||
var B2bLanguageCols = struct {
|
||||
ID gormcol.Field
|
||||
CreatedAt gormcol.Field
|
||||
UpdatedAt gormcol.Field
|
||||
DeletedAt gormcol.Field
|
||||
Name gormcol.Field
|
||||
IsoCode gormcol.Field
|
||||
LangCode gormcol.Field
|
||||
DateFormat gormcol.Field
|
||||
DateFormatShort gormcol.Field
|
||||
Rtl gormcol.Field
|
||||
IsDefault gormcol.Field
|
||||
Active gormcol.Field
|
||||
Flag gormcol.Field
|
||||
}{
|
||||
ID: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "id"),
|
||||
CreatedAt: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "created_at"),
|
||||
UpdatedAt: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "updated_at"),
|
||||
DeletedAt: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "deleted_at"),
|
||||
Name: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "name"),
|
||||
IsoCode: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "iso_code"),
|
||||
LangCode: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "lang_code"),
|
||||
DateFormat: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "date_format"),
|
||||
DateFormatShort: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "date_format_short"),
|
||||
Rtl: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "rtl"),
|
||||
IsDefault: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "is_default"),
|
||||
Active: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "active"),
|
||||
Flag: gormcol.Field{}.Set((&B2bLanguage{}).TableName(), "flag"),
|
||||
}
|
||||
Reference in New Issue
Block a user