add models generation and josn print
This commit is contained in:
21
app/model/prestadb/ps_attribute_impact.go
Normal file
21
app/model/prestadb/ps_attribute_impact.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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 prestadb
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user