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

import (
	"time"
)

const TableNameBasicPricing = "basic_pricing"

// BasicPricing mapped from table <basic_pricing>
type BasicPricing struct {
	ID                                            string                  `gorm:"column:id;type:character(26);primaryKey;default:generate_ulid()" json:"id"`
	ProvinceSourceID                              *string                 `gorm:"column:province_source_id;type:character(26);index:basic_pricing_province_source_id_idx,priority:1" json:"province_source_id"`
	CitySourceID                                  *string                 `gorm:"column:city_source_id;type:character(26);index:basic_pricing_city_source_id_idx,priority:1" json:"city_source_id"`
	DistrictSourceID                              *string                 `gorm:"column:district_source_id;type:character(26);index:basic_pricing_district_source_id_idx,priority:1" json:"district_source_id"`
	SubdistrictSourceID                           *string                 `gorm:"column:subdistrict_source_id;type:character(26);index:basic_pricing_subdistrict_source_id_idx,priority:1" json:"subdistrict_source_id"`
	PostalCodeSourceID                            *string                 `gorm:"column:postal_code_source_id;type:character(26);index:basic_pricing_postal_code_source_id_idx,priority:1" json:"postal_code_source_id"`
	ProvinceDestinationID                         *string                 `gorm:"column:province_destination_id;type:character(26);index:basic_pricing_province_destination_id_idx,priority:1" json:"province_destination_id"`
	CityDestinationID                             *string                 `gorm:"column:city_destination_id;type:character(26);index:basic_pricing_city_destination_id_idx,priority:1" json:"city_destination_id"`
	DistrictDestinationID                         *string                 `gorm:"column:district_destination_id;type:character(26);index:basic_pricing_district_destination_id_idx,priority:1" json:"district_destination_id"`
	SubdistrictDestinationID                      *string                 `gorm:"column:subdistrict_destination_id;type:character(26)" json:"subdistrict_destination_id"`
	PostalCodeDestinationID                       *string                 `gorm:"column:postal_code_destination_id;type:character(26);index:basic_pricing_postal_code_destination_id_idx,priority:1" json:"postal_code_destination_id"`
	MerchantID                                    *string                 `gorm:"column:merchant_id;type:character(26);index:basic_pricing_area_merchant_id_idx,priority:1" json:"merchant_id"`
	CreatedBy                                     *string                 `gorm:"column:created_by;type:character(26);index:basic_pricing_area_created_by_idx,priority:1" json:"created_by"`
	CreatedOn                                     *time.Time              `gorm:"column:created_on;type:timestamp without time zone;default:now()" json:"created_on"`
	UpdatedBy                                     *string                 `gorm:"column:updated_by;type:character(26)" json:"updated_by"`
	UpdatedOn                                     *time.Time              `gorm:"column:updated_on;type:timestamp without time zone;default:now()" json:"updated_on"`
	PackageTypeID                                 *string                 `gorm:"column:package_type_id;type:character(26);index:basic_pricing_package_type_id_idx,priority:1" json:"package_type_id"`
	ModaID                                        *string                 `gorm:"column:moda_id;type:character(26);index:basic_pricing_moda_id_idx,priority:1" json:"moda_id"`
	LeadTime                                      *string                 `gorm:"column:lead_time;type:character varying(10)" json:"lead_time"`
	MinimumWeight                                 *float32                `gorm:"column:minimum_weight;type:real" json:"minimum_weight"`
	CityDestination_Relation                      City                    `gorm:"foreignKey:city_destination_id;references:id" json:"city_destination_relation"`
	CitySource_Relation                           City                    `gorm:"foreignKey:city_source_id;references:id" json:"city_source_relation"`
	DistrictDestination_Relation                  District                `gorm:"foreignKey:district_destination_id;references:id" json:"district_destination_relation"`
	DistrictSource_Relation                       District                `gorm:"foreignKey:district_source_id;references:id" json:"district_source_relation"`
	Merchant_Relation                             *Merchant      `gorm:"foreignKey:merchant_id;references:id" json:"merchant_relation"`
	Moda_Relation                                 Moda                    `gorm:"foreignKey:moda_id;references:id" json:"moda_relation"`
	PackageType_Relation                          PackageType             `gorm:"foreignKey:package_type_id;references:id" json:"package_type_relation"`
	PostalCodeDestination_Relation                PostalCode              `gorm:"foreignKey:postal_code_destination_id;references:id" json:"postal_code_destination_relation"`
	PostalCodeSource_Relation                     PostalCode              `gorm:"foreignKey:postal_code_source_id;references:id" json:"postal_code_source_relation"`
	ProvinceDestination_Relation                  Province                `gorm:"foreignKey:province_destination_id;references:id" json:"province_destination_relation"`
	ProvinceSource_Relation                       Province                `gorm:"foreignKey:province_source_id;references:id" json:"province_source_relation"`
	SubdistrictDestination_Relation               Subdistrict             `gorm:"foreignKey:subdistrict_destination_id;references:id" json:"subdistrict_destination_relation"`
	SubdistrictSource_Relation                    Subdistrict             `gorm:"foreignKey:subdistrict_source_id;references:id" json:"subdistrict_source_relation"`
	Users_Relation                                User                    `gorm:"foreignKey:created_by;references:id" json:"users_relation"`
	BasicPricingComponent_ByBasicPricing_Relation []BasicPricingComponent `gorm:"foreignKey:basic_pricing_id;references:id" json:"basic_pricing_component_by_basic_pricing_relation"`
}

// TableName BasicPricing's table name
func (*BasicPricing) TableName() string {
	return TableNameBasicPricing
}
