// Code generated by gormcol. DO NOT EDIT. package dbmodel import ( "git.ma-al.com/goc_marek/gormcol" "time" ) const TableNamePsInvoiceCustomer = "ps_invoice_customer" // PsInvoiceCustomer mapped from table type PsInvoiceCustomer struct { IDInvoiceCustomer int32 `gorm:"column:id_invoice_customer;primaryKey;autoIncrement:true" json:"id_invoice_customer"` IDCustomer int32 `gorm:"column:id_customer;not null;uniqueIndex:UQ_ps_invoice_customer_id_customer,priority:1" json:"id_customer"` IDShopCompany int32 `gorm:"column:id_shop_company;not null;index:FK_ps_invoice_customer_id_shop_company,priority:1" json:"id_shop_company"` DateAdd *time.Time `gorm:"column:date_add;default:current_timestamp()" json:"date_add"` DateUpd *time.Time `gorm:"column:date_upd;default:current_timestamp()" json:"date_upd"` } // TableName PsInvoiceCustomer's table name func (*PsInvoiceCustomer) TableName() string { return TableNamePsInvoiceCustomer } var PsInvoiceCustomerCols = struct { IDInvoiceCustomer gormcol.Field IDCustomer gormcol.Field IDShopCompany gormcol.Field DateAdd gormcol.Field DateUpd gormcol.Field }{ IDInvoiceCustomer: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "id_invoice_customer"), IDCustomer: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "id_customer"), IDShopCompany: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "id_shop_company"), DateAdd: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "date_add"), DateUpd: gormcol.Field{}.Set((&PsInvoiceCustomer{}).TableName(), "date_upd"), }