fix products listing
This commit is contained in:
26
app/model/dbmodel/ps_product_attachment.go
Normal file
26
app/model/dbmodel/ps_product_attachment.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsProductAttachment = "ps_product_attachment"
|
||||
|
||||
// PsProductAttachment mapped from table <ps_product_attachment>
|
||||
type PsProductAttachment struct {
|
||||
IDProduct int32 `gorm:"column:id_product;primaryKey" json:"id_product"`
|
||||
IDAttachment int32 `gorm:"column:id_attachment;primaryKey" json:"id_attachment"`
|
||||
}
|
||||
|
||||
// TableName PsProductAttachment's table name
|
||||
func (*PsProductAttachment) TableName() string {
|
||||
return TableNamePsProductAttachment
|
||||
}
|
||||
|
||||
var PsProductAttachmentCols = struct {
|
||||
IDProduct gormcol.Field
|
||||
IDAttachment gormcol.Field
|
||||
}{
|
||||
IDProduct: gormcol.Field{}.Set((&PsProductAttachment{}).TableName(), "id_product"),
|
||||
IDAttachment: gormcol.Field{}.Set((&PsProductAttachment{}).TableName(), "id_attachment"),
|
||||
}
|
||||
Reference in New Issue
Block a user