CreditProductSubscriptionPackages


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
CompanyProductSubscriptionFreeTrialOffers.creditProductSubscriptionPackageId CompanyProductSubscriptionFre_creditProductSubscriptionPac_fkey C
InAppProductPackageMappings.creditProductSubscriptionPackageId InAppProductPackageMappings_creditProductSubscriptionPacka_fkey R
productId uuid 2147483647 null
Products.id CreditProductSubscriptionPackages_productId_fkey C
productQuantity int4 10 null
creditQuantity int4 10 null
productTimePeriod int4 10 null
productTimePeriodUnit "employer_purchases"."enum_employer_purchases_timePeriodUnit" 2147483647 null
productTimePeriodValidityType "employer_purchases"."enum_employer_purchases_timePeriodValidityType" 2147483647 'MAX_WITH_CURRENT_EXPIRY'::employer_purchases."enum_employer_purchases_timePeriodValidityType"
paymentFrequencyTimePeriod int4 10 null
paymentFrequencyTimePeriodUnit "employer_purchases"."enum_employer_purchases_timePeriodUnit" 2147483647 null
createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()
environmentType "employer_purchases"."enum_employer_purchases_environmentType" 2147483647 'PRODUCTION'::employer_purchases."enum_employer_purchases_environmentType"

Indicates whether the package is only for testing or available for real purchases.

customisationsCreditPricing jsonb 2147483647 null

Stores information regarding additional customisations pricing for a package

Indexes

Constraint Name Type Sort Column(s)
CreditProductSubscriptionPackages_pkey Primary key Asc id

Check Constraints

Constraint Name Constraint
CreditProductSubscriptionPacka_paymentFrequencyTimePeriod_check (("paymentFrequencyTimePeriod" > 0))
timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
CreditProductSubscriptionPackages_productQuantity_check (("productQuantity" > 0))
CreditProductSubscriptionPackages_creditQuantity_check (("creditQuantity" > 0))

Relationships