// 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 TableNamePackageType = "package_type"

// PackageType mapped from table <package_type>
type PackageType 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:package_type_name_idx,priority:1" json:"name"`
	MerchantID                 *string        `gorm:"column:merchant_id;type:character(26);index:package_type_merchant_id_idx,priority:1" json:"merchant_id"`
	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" json:"updated_on"`
	BasicPricing_ById_Relation []BasicPricing `gorm:"foreignKey:package_type_id;references:id" json:"basic_pricing_by_id_relation"`
	Merchant_Relation          *Merchant      `gorm:"foreignKey:merchant_id;references:id" json:"merchant_relation"`
}

// TableName PackageType's table name
func (*PackageType) TableName() string {
	return TableNamePackageType
}
