// 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 domain

const TableNameBasicPricingComponent = "basic_pricing_component"

// BasicPricingComponent mapped from table <basic_pricing_component>
type BasicPricingComponent struct {
	ID                     string        `gorm:"column:id;type:character(26);primaryKey;default:generate_ulid()" json:"id"`
	CostComponentID        *string       `gorm:"column:cost_component_id;type:character(26);index:basic_pricing_component_cost_component_id_idx,priority:1" json:"cost_component_id"`
	Value                  *string       `gorm:"column:value;type:character varying(255)" json:"value"`
	BasicPricingID         *string       `gorm:"column:basic_pricing_id;type:character(26);index:basic_pricing_component_basic_pricing_id_idx,priority:1" json:"basic_pricing_id"`
	BasicPricing_Relation  BasicPricing  `gorm:"foreignKey:basic_pricing_id;references:id" json:"basic_pricing_relation"`
	CostComponent_Relation CostComponent `gorm:"foreignKey:cost_component_id;references:id" json:"cost_component_relation"`
}

// TableName BasicPricingComponent's table name
func (*BasicPricingComponent) TableName() string {
	return TableNameBasicPricingComponent
}
