ExpertClassTicketTypePriceOptions


Description

Stores the options for possible expert class ticket price. This table is not linked to ExpertClassTicketType but is used to validate the price before adding an entry in ExpertClassTicketType table.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
price numeric 19,4 null

Available price of an expert class ticket

currencyCode enum_ExpertClass_supported_currencyCode 2147483647 null

ISO 4217 Currency code

isDefault bool 1 null

Defines the default selected price for expert class creation form. It should true for only one price per currency code.

createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
ExpertClassTicketTypePriceOptions_pkey Primary key Asc id
ExpertClassTicketTypePriceOptions_isDefault_currencyCode_unique Must be unique Asc/Asc isDefault + currencyCode
ExpertClassTicketTypePriceOptions_price_currencyCode_unique_ind Must be unique Asc/Asc price + currencyCode

Check Constraints

Constraint Name Constraint
ExpertClassTicketTypePriceOptions_isDefault_true_or_null ("isDefault")

Relationships