36 lines
1.4 KiB
Go
36 lines
1.4 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsAttributeImpact = "ps_attribute_impact"
|
|
|
|
// PsAttributeImpact mapped from table <ps_attribute_impact>
|
|
type PsAttributeImpact struct {
|
|
IDAttributeImpact int32 `gorm:"column:id_attribute_impact;primaryKey;autoIncrement:true" json:"id_attribute_impact"`
|
|
IDProduct int32 `gorm:"column:id_product;not null;uniqueIndex:id_product,priority:1" json:"id_product"`
|
|
IDAttribute int32 `gorm:"column:id_attribute;not null;uniqueIndex:id_product,priority:2" json:"id_attribute"`
|
|
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
|
Price float64 `gorm:"column:price;not null" json:"price"`
|
|
}
|
|
|
|
// TableName PsAttributeImpact's table name
|
|
func (*PsAttributeImpact) TableName() string {
|
|
return TableNamePsAttributeImpact
|
|
}
|
|
|
|
var PsAttributeImpactCols = struct {
|
|
IDAttributeImpact gormcol.Field
|
|
IDProduct gormcol.Field
|
|
IDAttribute gormcol.Field
|
|
Weight gormcol.Field
|
|
Price gormcol.Field
|
|
}{
|
|
IDAttributeImpact: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_attribute_impact"),
|
|
IDProduct: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_product"),
|
|
IDAttribute: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_attribute"),
|
|
Weight: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "weight"),
|
|
Price: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "price"),
|
|
}
|