package domain import "time" const TableNameMerchant = "merchant" type Merchant struct { ID string `gorm:"column:id;type:character(26);not null;default:generate_ulid()" json:"id"` Name *string `gorm:"column:name;type:character varying(255);index:merchant_name_idx,priority:3" json:"name"` Address *string `gorm:"column:address;type:character varying(500);index:merchant_name_idx,priority:1" json:"address"` Email *string `gorm:"column:email;type:character varying(200);index:merchant_name_idx,priority:2" json:"email"` Telp *string `gorm:"column:telp;type:character varying(50);index:merchant_name_idx,priority:4" json:"telp"` AdditionalInformation *string `gorm:"column:additional_information;type:jsonb;index:merchant_additional_information_idx,priority:1;default:{}" json:"additional_information"` Active *bool `gorm:"column:active;type:boolean;default:true" json:"active"` CreatedBy *string `gorm:"column:created_by;type:character(26)" 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"` ProvinceID *string `gorm:"column:province_id;type:character(26);index:merchant_province_id_idx,priority:1" json:"province_id"` CityID *string `gorm:"column:city_id;type:character(26);index:merchant_city_id_idx,priority:1" json:"city_id"` DistrictID *string `gorm:"column:district_id;type:character(26);index:merchant_district_id_idx,priority:1" json:"district_id"` SubdistrictID *string `gorm:"column:subdistrict_id;type:character(26);index:merchant_subdistrict_id_idx,priority:1" json:"subdistrict_id"` PostalCode *string `gorm:"column:postal_code;type:character(26);index:merchant_postal_code_idx,priority:1" json:"postal_code"` } func (*Merchant) TableName() string { return TableNameMerchant }