// 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 dbmodel import "git.ma-al.com/goc_marek/gormcol" const TableNameB2bCustomerCart = "b2b_customer_carts" // B2bCustomerCart mapped from table type B2bCustomerCart struct { CartID int64 `gorm:"column:cart_id;primaryKey;autoIncrement:true" json:"cart_id"` UserID int64 `gorm:"column:user_id;not null;index:idx_customer_carts_user_id,priority:1" json:"user_id"` Name *string `gorm:"column:name" json:"name"` } // TableName B2bCustomerCart's table name func (*B2bCustomerCart) TableName() string { return TableNameB2bCustomerCart } var B2bCustomerCartCols = struct { CartID gormcol.Field UserID gormcol.Field Name gormcol.Field }{ CartID: gormcol.Field{}.Set((&B2bCustomerCart{}).TableName(), "cart_id"), UserID: gormcol.Field{}.Set((&B2bCustomerCart{}).TableName(), "user_id"), Name: gormcol.Field{}.Set((&B2bCustomerCart{}).TableName(), "name"), }