// 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 TableNameProvince = "province"

// Province mapped from table <province>
type Province struct {
	ID                                          string         `gorm:"column:id;type:character(26);primaryKey;default:generate_ulid()" json:"id"`
	Name                                        *string        `gorm:"column:name;type:character varying(255);index:province_name_idx,priority:1" json:"name"`
	CreatedBy                                   *string        `gorm:"column:created_by;type:character(26);index:province_created_by_idx,priority:1" json:"created_by"`
	CreatedOn                                   *time.Time     `gorm:"column:created_on;type:timestamp without time zone" 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" json:"updated_on"`
	MerchantID                                  *string        `gorm:"column:merchant_id;type:character(26)" json:"merchant_id"`
	BasicPricing_ByProvinceDestination_Relation []BasicPricing `gorm:"foreignKey:province_destination_id;references:id" json:"basic_pricing_by_province_destination_relation"`
	BasicPricing_ByProvinceSource_Relation      []BasicPricing `gorm:"foreignKey:province_source_id;references:id" json:"basic_pricing_by_province_source_relation"`
	City_ByProvince_Relation                    []City         `gorm:"foreignKey:province_id;references:id" json:"city_by_province_relation"`
	District_ByProvince_Relation                []District     `gorm:"foreignKey:province_id;references:id" json:"district_by_province_relation"`
	Merchant_ByProvince_Relation                []Merchant     `gorm:"foreignKey:province_id;references:id" json:"merchant_by_province_relation"`
	PostalCode_ByProvince_Relation              []PostalCode   `gorm:"foreignKey:province_id;references:id" json:"postal_code_by_province_relation"`
	Merchant_Relation                           *Merchant      `gorm:"foreignKey:merchant_id;references:id" json:"merchant_relation"`
	Users_Relation                              User           `gorm:"foreignKey:created_by;references:id" json:"users_relation"`
	Subdistrict_ByProvince_Relation             []Subdistrict  `gorm:"foreignKey:province_id;references:id" json:"subdistrict_by_province_relation"`
}

// TableName Province's table name
func (*Province) TableName() string {
	return TableNameProvince
}
