33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsAttribute = "ps_attribute"
|
|
|
|
// PsAttribute mapped from table <ps_attribute>
|
|
type PsAttribute struct {
|
|
IDAttribute int32 `gorm:"column:id_attribute;primaryKey;autoIncrement:true" json:"id_attribute"`
|
|
IDAttributeGroup int32 `gorm:"column:id_attribute_group;not null;index:attribute_group,priority:1" json:"id_attribute_group"`
|
|
Color string `gorm:"column:color;not null" json:"color"`
|
|
Position int32 `gorm:"column:position;not null" json:"position"`
|
|
}
|
|
|
|
// TableName PsAttribute's table name
|
|
func (*PsAttribute) TableName() string {
|
|
return TableNamePsAttribute
|
|
}
|
|
|
|
var PsAttributeCols = struct {
|
|
IDAttribute gormcol.Field
|
|
IDAttributeGroup gormcol.Field
|
|
Color gormcol.Field
|
|
Position gormcol.Field
|
|
}{
|
|
IDAttribute: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "id_attribute"),
|
|
IDAttributeGroup: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "id_attribute_group"),
|
|
Color: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "color"),
|
|
Position: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "position"),
|
|
}
|