Constraints

128 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
CreditPurchaseOrderXenditQRCodePayme_creditPurchaseOrderId_fkey
CreditPurchaseOrderXenditQRCodePaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
CompanyProductInventorySubscr_companyProductInventoryLogId_fkey
CompanyProductInventorySubscriptionLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CompanyProductInventorySubscr_companyProductSubscriptionFr_fkey
CompanyProductInventorySubscriptionLogs.companyProductSubscriptionFreeTrialOfferId
CompanyProductSubscriptionFreeTrialOffers.id
Null on delete
CompanyProductInventorySubscr_companyProductSubscriptionId_fkey
CompanyProductInventorySubscriptionLogs.companyProductSubscriptionId
CompanyProductSubscriptions.id
Null on delete
AfterCompanyProductSubscriptionPurch_creditPurchaseOrderId_fkey
AfterCompanyProductSubscriptionPurchaseNotifications.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
AfterCompanyProductSubscripti_companyProductSubscriptionId_fkey
AfterCompanyProductSubscriptionPurchaseNotifications.companyProductSubscriptionId
CompanyProductSubscriptions.id
Cascade on delete
AfterCompanyProductSubscriptionPurchaseNoti_NotificationId_fkey
AfterCompanyProductSubscriptionPurchaseNotifications.NotificationId
Notifications.id
Cascade on delete
CompanyProductInventoryAddTh_companyProductInventoryLogId_fkey2
CompanyProductInventoryAddThroughCreditLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CompanyProductInventoryAddThr_creditProductPurchaseOrderId_fkey
CompanyProductInventoryAddThroughCreditLogs.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Restrict delete
CreditPurchaseOrderGooglePlayPayment_creditPurchaseOrderId_fkey
CreditPurchaseOrderGooglePlayPaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
CompanyCreditInventoryAddThro_companyCreditInventoryLogId_fkey1
CompanyCreditInventoryAddThroughProductPurchaseLogs.companyCreditInventoryLogId
CompanyCreditInventoryLogs.id
Cascade on delete
CompanyCreditInventoryAddThrough_offlineSalesTransactionId_fkey
CompanyCreditInventoryAddThroughProductPurchaseLogs.offlineSalesTransactionId
OfflineSalesTransactions.id
Restrict delete
CompanyCreditInventoryAddThro_creditProductPurchaseOrderId_fkey
CompanyCreditInventoryAddThroughProductPurchaseLogs.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Restrict delete
PurchaseOrderProducts_purchaseOrderId_fkey
PurchaseOrderProducts.purchaseOrderId
PurchaseOrders.id
Cascade on delete
PurchaseOrderProducts_productId_fkey
PurchaseOrderProducts.productId
Products.id
Restrict delete
CreditPurchaseOrderPaymentRequests_creditPurchaseOrderId_fkey
CreditPurchaseOrderPaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Restrict delete
AfterCreditPurchaseOrderNotification_creditPurchaseOrderId_fkey
AfterCreditPurchaseOrderNotifications.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
AfterCreditPurchaseOrderNotifications_NotificationId_fkey
AfterCreditPurchaseOrderNotifications.NotificationId
Notifications.id
Cascade on delete
CompanyCreditInventories_companyId_fkey
CompanyCreditInventories.companyId
Companies.id
Cascade on delete
CompanyProductFreeTrialOffers_productId_fkey
CompanyProductFreeTrialOffers.productId
Products.id
Cascade on delete
CompanyProductFreeTrialOffers_companyId_fkey
CompanyProductFreeTrialOffers.companyId
Companies.id
Cascade on delete
CreditPurchaseOrderAfterPaymentActio_creditPurchaseOrderId_fkey
CreditPurchaseOrderAfterPaymentActionLogs.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
CreditPurchaseOrderAfterPayme_creditProductPurchaseOrderId_fkey
CreditPurchaseOrderAfterPaymentActionLogs.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Restrict delete
CompanyCreditInventoryUsageFro_companyCreditInventoryLogId_fkey
CompanyCreditInventoryUsageFromBalanceLogs.companyCreditInventoryLogId
CompanyCreditInventoryLogs.id
Cascade on delete
CompanyCreditInventoryUsageFr_creditProductPurchaseOrderId_fkey
CompanyCreditInventoryUsageFromBalanceLogs.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Restrict delete
CreditProductPurchaseOrderCre_creditProductPurchaseOrderId_fkey
CreditProductPurchaseOrderCreditBenefits.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Cascade on delete
CompanyProductSubscriptionFreeTrialOffers_companyId_fkey
CompanyProductSubscriptionFreeTrialOffers.companyId
Companies.id
Cascade on delete
CompanyProductSubscriptionFre_creditProductSubscriptionPac_fkey
CompanyProductSubscriptionFreeTrialOffers.creditProductSubscriptionPackageId
CreditProductSubscriptionPackages.id
Cascade on delete
CompanyProductSubscriptions_productId_fkey
CompanyProductSubscriptions.productId
Products.id
Restrict delete
CompanyProductSubscriptions_companyId_fkey
CompanyProductSubscriptions.companyId
Companies.id
Null on delete
PurchaseOrderXenditPaymentRequests_purchaseOrderId_fkey
PurchaseOrderXenditPaymentRequests.purchaseOrderId
PurchaseOrders.id
Restrict delete
CompanyProductInventoryAddTh_companyProductInventoryLogId_fkey4
CompanyProductInventoryAddThroughSubscriptionLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CompanyProductInventoryAddThr_companyJobSlotsSubscriptionI_fkey
CompanyProductInventoryAddThroughSubscriptionLogs.companyJobSlotsSubscriptionId
CompanyJobSlotsSubscriptions.id
Null on delete
CreditPurchaseOrderRevenueCatPayment_creditPurchaseOrderId_fkey
CreditPurchaseOrderRevenueCatPaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
PendingPurchaseOrders_companyId_fkey
PendingPurchaseOrders.companyId
Companies.id
Null on delete
PendingPurchaseOrders_creditPurchaseOrderId_fkey
PendingPurchaseOrders.creditPurchaseOrderId
CreditPurchaseOrders.id
Restrict delete
PendingPurchaseOrders_creditProductPurchaseOrderId_fkey
PendingPurchaseOrders.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Restrict delete
PendingPurchaseOrders_productId_fkey
PendingPurchaseOrders.productId
Products.id
Restrict delete
CompanyProductInventoryUsageF_companyProductInventoryLogId_fkey
CompanyProductInventoryUsageFromBalanceLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CompanyProductInventoryUsageFromBalanceLogs_userId_fkey
CompanyProductInventoryUsageFromBalanceLogs.userId
Users.id
Null on delete
CompanyProductInventoryUsageFromBalan_relatedApplicationId_fkey
CompanyProductInventoryUsageFromBalanceLogs.relatedApplicationId
Applications.id
Null on delete
CompanyProductInventoryUsageFromBalanceLogs_relatedJobId_fkey
CompanyProductInventoryUsageFromBalanceLogs.relatedJobId
Jobs.id
Null on delete
InAppProductPackageMappings_creditPackageId_fkey
InAppProductPackageMappings.creditPackageId
CreditPackages.id
Restrict delete
InAppProductPackageMappings_creditProductPackageId_fkey
InAppProductPackageMappings.creditProductPackageId
CreditProductPackages.id
Restrict delete
InAppProductPackageMappings_creditProductSubscriptionPacka_fkey
InAppProductPackageMappings.creditProductSubscriptionPackageId
CreditProductSubscriptionPackages.id
Restrict delete
CreditProductPurchaseOrders_productId_fkey
CreditProductPurchaseOrders.productId
Products.id
Restrict delete
CreditProductPurchaseOrders_userId_fkey
CreditProductPurchaseOrders.userId
Users.id
Null on delete
CreditProductPurchaseOrders_companyId_fkey
CreditProductPurchaseOrders.companyId
Companies.id
Null on delete
CompanyCreditInventoryLogs_companyCreditInventoryBreakdownId_fk
CompanyCreditInventoryLogs.companyCreditInventoryBreakdownId
CompanyCreditInventoryBreakdowns.id
Null on delete
CompanyCreditInventoryLogs_productId_fkey
CompanyCreditInventoryLogs.productId
Products.id
Restrict delete
CompanyCreditInventoryLogs_companyId_fkey
CompanyCreditInventoryLogs.companyId
Companies.id
Null on delete
CompanyCreditInventoryLogs_userId_fkey
CompanyCreditInventoryLogs.userId
Users.id
Null on delete
JobProductInventoryAddViaComp_companyProductInventoryLogId_fkey
JobProductInventoryAddViaCompanyProductUsageLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Null on delete
JobProductInventoryAddViaCompanyP_jobProductInventoryLogId_fkey
JobProductInventoryAddViaCompanyProductUsageLogs.jobProductInventoryLogId
JobProductInventoryLogs.id
Cascade on delete
CompanyProductInventories_companyId_fkey
CompanyProductInventories.companyId
Companies.id
Cascade on delete
CompanyProductInventories_productId_fkey
CompanyProductInventories.productId
Products.id
Restrict delete
CreditProductPackages_productId_fkey
CreditProductPackages.productId
Products.id
Cascade on delete
Products_countryCode_fkey
Products.countryCode
Countries.code
Restrict delete
CreditPurchaseOrderXenditSubscriptio_creditPurchaseOrderId_fkey
CreditPurchaseOrderXenditSubscriptionPaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
SubscriptionPlanProductVariantDetails_productId_fkey
PremiumPlanProductVariantDetails.productId
Products.id
Cascade on delete
HotJobProductVariantDetails_productId_fkey
HotJobProductVariantDetails.productId
Products.id
Cascade on delete
PurchaseOrders_companyId_fkey
PurchaseOrders.companyId
Companies.id
Null on delete
PurchaseOrders_userId_fkey
PurchaseOrders.userId
Users.id
Null on delete
CreditPurchaseOrderSubscripti_creditProductPurchaseOrderId_fkey
CreditPurchaseOrderSubscriptionDetails.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Cascade on delete
CreditPurchaseOrderSubscriptionDetai_creditPurchaseOrderId_fkey
CreditPurchaseOrderSubscriptionDetails.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
CreditPurchaseOrderSubscriptionDetails_freeTrialOfferId_fkey
CreditPurchaseOrderSubscriptionDetails.freeTrialOfferId
CompanyProductSubscriptionFreeTrialOffers.id
Restrict delete
CreditPurchaseOrderSubscripti_companyProductSubscriptionId_fkey
CreditPurchaseOrderSubscriptionDetails.companyProductSubscriptionId
CompanyProductSubscriptions.id
Restrict delete
CompanyProductInventoryLogs_companyId_fkey
CompanyProductInventoryLogs.companyId
Companies.id
Cascade on delete
CompanyProductInventoryLogs_userId_fkey
CompanyProductInventoryLogs.userId
Users.id
Null on delete
CompanyProductInventoryLogs_productId_fkey
CompanyProductInventoryLogs.productId
Products.id
Cascade on delete
ExpiringProductNotifications_productId_fkey
ExpiringProductNotifications.productId
Products.id
Cascade on delete
ExpiringProductNotifications_NotificationId_fkey
ExpiringProductNotifications.NotificationId
Notifications.id
Cascade on delete
ExpiringProductNotifications_companyId_fkey
ExpiringProductNotifications.companyId
Companies.id
Cascade on delete
CompanyProductInventoryUsageAfterPu_purchaseOrderProductId_fkey
CompanyProductInventoryUsageAfterPurchaseLogs.purchaseOrderProductId
PurchaseOrderProducts.id
Restrict delete
CompanyProductInventoryUsageA_companyProductInventoryLogId_fkey
CompanyProductInventoryUsageAfterPurchaseLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
JobBoostRecords_jobId_fkey
JobBoostRecords.jobId
Jobs.id
Cascade on delete
CompanyProductInventoryAddTh_companyProductInventoryLogId_fkey3
CompanyProductInventoryAddThroughSalesTransactionLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CompanyProductInventoryAddThroug_offlineSalesTransactionId_fkey
CompanyProductInventoryAddThroughSalesTransactionLogs.offlineSalesTransactionId
OfflineSalesTransactions.id
Cascade on delete
JobProductInventoryLogs_jobId_fkey
JobProductInventoryLogs.jobId
Jobs.id
Cascade on delete
JobProductInventoryLogs_productId_fkey
JobProductInventoryLogs.productId
JobProducts.id
Cascade on delete
CompanyCreditInventoryAmountEx_companyCreditInventoryLogId_fkey
CompanyCreditInventoryAmountExpiryLogs.companyCreditInventoryLogId
CompanyCreditInventoryLogs.id
Cascade on delete
CreditPurchaseOrders_countryCode_fkey
CreditPurchaseOrders.countryCode
Countries.code
Restrict delete
CreditPurchaseOrders_userId_fkey
CreditPurchaseOrders.userId
Users.id
Null on delete
CreditPurchaseOrders_companyId_fkey
CreditPurchaseOrders.companyId
Companies.id
Null on delete
PurchaseOrderPaymentRequests_purchaseOrderId_fkey
PurchaseOrderPaymentRequests.purchaseOrderId
PurchaseOrders.id
Restrict delete
JobProductInventories_productId_fkey
JobProductInventories.productId
JobProducts.id
Restrict delete
JobProductInventories_jobId_fkey
JobProductInventories.jobId
Jobs.id
Cascade on delete
JobProductInventoryUsageFromBalan_jobProductInventoryLogId_fkey
JobProductInventoryUsageFromBalanceLogs.jobProductInventoryLogId
JobProductInventoryLogs.id
Cascade on delete
JobProductInventoryUsageFromBalanceLogs_applicationId_fkey
JobProductInventoryUsageFromBalanceLogs.applicationId
Applications.id
Null on delete
JobProductInventoryUsageFromBalanceLogs_userId_fkey
JobProductInventoryUsageFromBalanceLogs.userId
Users.id
Null on delete
PurchaseOrderProductPricingDetails_purchaseOrderProductId_fkey
PurchaseOrderProductPricingDetails.purchaseOrderProductId
PurchaseOrderProducts.id
Restrict delete
PurchaseOrderInvoices_purchaseOrderId_fkey
PurchaseOrderInvoices.purchaseOrderId
PurchaseOrders.id
Cascade on delete
CompanyProductInventoryAmount_companyProductInventoryLogId_fkey
CompanyProductInventoryAmountExpiryLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CreditProductPurchaseOrderAfterPurchaseAction_relatedJobId_fkey
CreditProductPurchaseOrderAfterPurchaseActionLogs.relatedJobId
Jobs.id
Null on delete
CreditProductPurchaseOrderAft_creditProductPurchaseOrderId_fkey
CreditProductPurchaseOrderAfterPurchaseActionLogs.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Cascade on delete
HierarchicalJobCategoryFreeRecom_hierarchicalJobCategoryId_fkey
HierarchicalJobCategoryFreeRecommendedTalentCount.hierarchicalJobCategoryId
HierarchicalJobCategories.id
Cascade on delete
CompanyCreditInventoryAddThrou_companyCreditInventoryLogId_fkey
CompanyCreditInventoryAddThroughPurchaseLogs.companyCreditInventoryLogId
CompanyCreditInventoryLogs.id
Cascade on delete
CompanyCreditInventoryAddThroughPurc_creditPurchaseOrderId_fkey
CompanyCreditInventoryAddThroughPurchaseLogs.creditPurchaseOrderId
CreditPurchaseOrders.id
Restrict delete
CompanyProductSubscriptionAft_companyProductSubscriptionId_fkey
CompanyProductSubscriptionAfterPaymentReceivedLogs.companyProductSubscriptionId
CompanyProductSubscriptions.id
Cascade on delete
CreditProductSubscriptionPackages_productId_fkey
CreditProductSubscriptionPackages.productId
Products.id
Cascade on delete
OfflineSalesTransactions_companyJobSlotSubscriptionId_fkey
OfflineSalesTransactions.companyJobSlotSubscriptionId
CompanyJobSlotsSubscriptions.id
Cascade on delete
OfflineSalesTransactions_userId_fkey
OfflineSalesTransactions.userId
Users.id
Null on delete
OfflineSalesTransactions_companyId_fkey
OfflineSalesTransactions.companyId
Companies.id
Null on delete
OfflineSalesTransactions_companyCreditInventoryLogId_fkey
OfflineSalesTransactions.companyCreditInventoryLogId
CompanyCreditInventoryLogs.id
Cascade on delete
CompanyProductInventoryAddTh_companyProductInventoryLogId_fkey1
CompanyProductInventoryAddThroughOfflineSalesLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CreditPurchaseOrderInvoices_creditPurchaseOrderId_fkey
CreditPurchaseOrderInvoices.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
CompanyProductInventoryUsageA_creditProductPurchaseOrderId_fkey
CompanyProductInventoryUsageAfterCreditProductPurchaseLogs.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Restrict delete
CompanyProductInventoryUsage_companyProductInventoryLogId_fkey1
CompanyProductInventoryUsageAfterCreditProductPurchaseLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CreditPurchaseOrderXenditInvoicePaym_creditPurchaseOrderId_fkey
CreditPurchaseOrderXenditInvoicePaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
ProductUsageJobProductBenefits_jobProductId_fkey
ProductUsageJobProductBenefits.jobProductId
JobProducts.id
Cascade on delete
ProductUsageJobProductBenefits_productId_fkey
ProductUsageJobProductBenefits.productId
Products.id
Cascade on delete
AfterCreditProductPurchaseOrd_creditProductPurchaseOrderId_fkey
AfterCreditProductPurchaseOrderNotifications.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Cascade on delete
AfterCreditProductPurchaseOrderNotification_NotificationId_fkey
AfterCreditProductPurchaseOrderNotifications.NotificationId
Notifications.id
Cascade on delete
AfterCreditProductPurchaseOrderNotif_creditPurchaseOrderId_fkey
AfterCreditProductPurchaseOrderNotifications.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
CompanyCreditInventoryBreakdowns_companyId_fkey
CompanyCreditInventoryBreakdowns.companyId
Companies.id
Cascade on delete
CompanyProductInventoryAddThr_companyProductFreeTrialOffer_fkey
CompanyProductInventoryAddThroughFreeTrialOfferLogs.companyProductFreeTrialOfferId
CompanyProductFreeTrialOffers.id
Null on delete
CompanyProductInventoryAddTh_companyProductInventoryLogId_fkey5
CompanyProductInventoryAddThroughFreeTrialOfferLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
CompanyProductInventoryAddThroughPu_purchaseOrderProductId_fkey
CompanyProductInventoryAddThroughPurchaseLogs.purchaseOrderProductId
PurchaseOrderProducts.id
Restrict delete
CompanyProductInventoryAddThr_companyProductInventoryLogId_fkey
CompanyProductInventoryAddThroughPurchaseLogs.companyProductInventoryLogId
CompanyProductInventoryLogs.id
Cascade on delete
ProductCreditBenefits_productId_fkey
ProductCreditBenefits.productId
Products.id
Cascade on delete
RecurringCreditTopUp_productId_fkey
RecurringCreditTopUp.productId
Products.id
Cascade on delete
RecurringCreditTopUp_companyId_fkey
RecurringCreditTopUp.companyId
Companies.id
Cascade on delete
RecurringCreditTopUp_creditProductPurchaseOrderId_fkey
RecurringCreditTopUp.creditProductPurchaseOrderId
CreditProductPurchaseOrders.id
Cascade on delete
RecurringCreditTopUp_offlineSalesTransactionId_fkey
RecurringCreditTopUp.offlineSalesTransactionId
OfflineSalesTransactions.id
Cascade on delete
CreditPurchaseOrderAppleAppStorePaym_creditPurchaseOrderId_fkey
CreditPurchaseOrderAppleAppStorePaymentRequests.creditPurchaseOrderId
CreditPurchaseOrders.id
Cascade on delete
PurchaseOrderProductAfterPaymentActionLogs_relatedJobId_fkey
PurchaseOrderProductAfterPaymentActionLogs.relatedJobId
Jobs.id
Null on delete
PurchaseOrderProductAfterPaymentAct_purchaseOrderProductId_fkey
PurchaseOrderProductAfterPaymentActionLogs.purchaseOrderProductId
PurchaseOrderProducts.id
Restrict delete
PurchaseOrderPricingDetails_purchaseOrderId_fkey
PurchaseOrderPricingDetails.purchaseOrderId
PurchaseOrders.id
Restrict delete

Check Constraints

Table Constraint Name Constraint
CreditPurchaseOrderXenditQRCodePaymentRequests CreditPurchaseOrderXenditQRCodePaymentRequests_expiryAt_check (("expiryAt" > "requestedAt"))
CompanyCreditInventoryAddThroughProductPurchaseLogs CompanyCreditInventoryAddThroughProductPurchaseLogs_creditProdu ((("creditProductPurchaseOrderId" IS NOT NULL) OR ("offlineSalesTransactionId" IS NOT NULL)))
PurchaseOrderProducts PurchaseOrderProducts_quantity_check ((quantity > 0))
PurchaseOrderProducts timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
CreditPackages CreditPackages_freeCredits_check ((("freeCredits" IS NULL) OR ("freeCredits" > 0)))
CreditPackages CreditPackages_paidCredits_check (("paidCredits" > 0))
CreditPackages timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
CompanyCreditInventories CompanyCreditInventories_amount_check ((amount >= 0))
CompanyProductFreeTrialOffers CompanyProductFreeTrialOffers_productQuantity_check (("productQuantity" > 0))
CreditPrices CreditPrices_amount_check ((amount >= (0)::numeric))
CreditProductPurchaseOrderCreditBenefits CreditProductPurchaseOrderCreditBenefits_amount_check ((amount > 0))
CreditProductPurchaseOrderCreditBenefits timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
CompanyProductSubscriptionFreeTrialOffers CompanyProductSubscriptionFreeTrialOffers_productQuantity_check (("productQuantity" > 0))
CompanyProductSubscriptionFreeTrialOffers CompanyProductSubscriptionFreeTrialOffers_trialTimePeriod_check (("trialTimePeriod" > 0))
CompanyProductSubscriptionFreeTrialOffers timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
CompanyProductSubscriptions bufferTimePeriod_bufferTimePeriodUnit_check (((("bufferTimePeriod" IS NOT NULL) AND ("bufferTimePeriod" > 0) AND ("bufferTimePeriodUnit" IS NOT NULL)) OR (("bufferTimePeriod" IS NULL) AND ("bufferTimePeriodUnit" IS NULL))))
PurchaseOrderXenditPaymentRequests PurchaseOrderXenditPaymentRequests_expiryAt_check (("expiryAt" > "requestedAt"))
CreditProductPurchaseOrders CreditProductPurchaseOrders_creditDiscountAmount_check ((("creditDiscountAmount" IS NULL) OR ("creditDiscountAmount" > 0)))
CreditProductPurchaseOrders CreditProductPurchaseOrders_creditDiscountPercentage_check ((("creditDiscountPercentage" IS NULL) OR ("creditDiscountPercentage" > (0)::numeric)))
CreditProductPurchaseOrders CreditProductPurchaseOrders_creditQuantity_check (("creditQuantity" > 0))
CreditProductPurchaseOrders CreditProductPurchaseOrders_failureType_nullable_check ((((status = 'FAILED'::employer_purchases."enum_CreditProductPurchaseOrders_status") AND ("failureType" IS NOT NULL)) OR ((status <> 'FAILED'::employer_purchases."enum_CreditProductPurchaseOrders_status") AND ("failureType" IS NULL))))
CreditProductPurchaseOrders CreditProductPurchaseOrders_productQuantity_check (("productQuantity" > 0))
CreditProductPurchaseOrders productTimePeriod_and_productTimePeriodUnit_check (((("productTimePeriod" IS NOT NULL) AND ("productTimePeriod" > 0) AND ("productTimePeriodUnit" IS NOT NULL)) OR (("productTimePeriod" IS NULL) AND ("productTimePeriodUnit" IS NULL))))
CompanyCreditInventoryLogs CompanyCreditInventoryLogs_amount_check ((amount > 0))
CompanyCreditInventoryLogs CompanyCreditInventoryLogs_finalBalance_check (("finalBalance" >= 0))
CompanyProductInventories CompanyProductInventories_amount_check (((amount)::numeric >= (0)::numeric))
CompanyProductInventories CompanyProductInventories_daysBeforeExpiryReminder_check ((("daysBeforeExpiryReminder" IS NULL) OR ("daysBeforeExpiryReminder" > 0)))
CreditProductPackages CreditProductPackages_creditDiscountAmount_check ((("creditDiscountAmount" IS NULL) OR ("creditDiscountAmount" > 0)))
CreditProductPackages CreditProductPackages_creditQuantity_check (("creditQuantity" > 0))
CreditProductPackages CreditProductPackages_productQuantity_check (("productQuantity" > 0))
CreditProductPackages timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
Products timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
PremiumPlanProductVariantDetails SubscriptionPlanProductVariantDetai_maxConcurrentJobSlots_check ((("maxConcurrentJobSlots" IS NULL) OR ("maxConcurrentJobSlots" > 0)))
PremiumPlanProductVariantDetails SubscriptionPlanProductVariantDetai_minConcurrentJobSlots_check ((("minConcurrentJobSlots" IS NULL) OR ("minConcurrentJobSlots" > 0)))
PremiumPlanProductVariantDetails SubscriptionPlanProductVariantDetails_maxConcurrentJobSlots_gre ((("minConcurrentJobSlots" IS NULL) OR ("maxConcurrentJobSlots" IS NULL) OR ("minConcurrentJobSlots" <= "maxConcurrentJobSlots")))
CreditPurchaseOrderSubscriptionDetails CreditPurchaseOrderSubscriptio_paymentFrequencyTimePeriod_check (("paymentFrequencyTimePeriod" > 0))
CompanyProductInventoryLogs CompanyProductInventoryLogs_amount_check (((amount)::numeric >= (0)::numeric))
CompanyProductInventoryLogs CompanyProductInventoryLogs_finalBalance_check ((("finalBalance")::numeric >= (0)::numeric))
CompanyProductInventoryLogs timePeriod_columns_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > (0)::numeric) AND ("timePeriodUnit" IS NOT NULL) AND ("timePeriodValidityType" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL) AND ("timePeriodValidityType" IS NULL))))
JobBoostRecords JobBoostRecords_boostedAt_boostEndsAt_check (("boostedAt" < "boostEndsAt"))
JobProductInventoryLogs JobProductInventoryLogs_amount_check ((amount >= 0))
JobProductInventoryLogs JobProductInventoryLogs_finalBalance_check (("finalBalance" >= 0))
CreditPurchaseOrders CreditPurchaseOrders_freeCredits_check ((("freeCredits" IS NULL) OR ("freeCredits" > 0)))
CreditPurchaseOrders CreditPurchaseOrders_paidCredits_check (("paidCredits" > 0))
CreditPurchaseOrders CreditPurchaseOrders_pricePerCredit_check (("pricePerCredit" >= (0)::numeric))
CreditPurchaseOrders CreditPurchaseOrders_taxPercentage_check (("taxPercentage" >= (0)::numeric))
CreditPurchaseOrders creditTimePeriod_and_creditTimePeriodUnit_check (((("creditTimePeriod" IS NOT NULL) AND ("creditTimePeriod" > 0) AND ("creditTimePeriodUnit" IS NOT NULL)) OR (("creditTimePeriod" IS NULL) AND ("creditTimePeriodUnit" IS NULL))))
JobProductInventories JobProductInventories_amount_check ((amount >= 0))
PurchaseOrderProductPricingDetails PurchaseOrderProductPricingDetails_discountPercentage_check (((("discountPercentage" IS NOT NULL) AND ("discountPercentage" > (0)::numeric)) OR ("discountPercentage" IS NULL)))
PurchaseOrderProductPricingDetails PurchaseOrderProductPricingDetails_pricePerItem_check (("pricePerItem" >= (0)::numeric))
PurchaseOrderInvoices PurchaseOrderInvoices_failureMessage_nullable_check ((((status = 'FAILED'::employer_purchases."enum_employer_purchases_PurchaseOrderInvoices_status") AND ("failureMessage" IS NOT NULL)) OR ((status = ANY (ARRAY['IN_PROGRESS'::employer_purchases."enum_employer_purchases_PurchaseOrderInvoices_status", 'SUCCESS'::employer_purchases."enum_employer_purchases_PurchaseOrderInvoices_status"])) AND ("failureMessage" IS NULL)) OR (status = 'NOT_AVAILABLE'::employer_purchases."enum_employer_purchases_PurchaseOrderInvoices_status")))
CreditProductPurchaseOrderAfterPurchaseActionLogs CreditProductPurchaseOrderAfterPurchaseActionLogs_failureType_n ((((status = 'FAILED'::employer_purchases."enum_CreditProductPurchaseOrderAfterPurchaseActionLogs_status") AND ("failureType" IS NOT NULL)) OR ((status <> 'FAILED'::employer_purchases."enum_CreditProductPurchaseOrderAfterPurchaseActionLogs_status") AND ("failureType" IS NULL))))
HierarchicalJobCategoryFreeRecommendedTalentCount HierarchicalJobCategoryFreeRec_freeRecommendedTalentCount_check (("freeRecommendedTalentCount" >= 0))
CompanyProductSubscriptionAfterPaymentReceivedLogs CompanyProductSubscriptionAfterPaymentReceivedLogs_failureReaso ((((status = 'FAILED'::employer_purchases."enum_CompanyProductSubscriptionAfterPaymentReceivedLogs_status") AND ("failureReason" IS NOT NULL)) OR ((status <> 'FAILED'::employer_purchases."enum_CompanyProductSubscriptionAfterPaymentReceivedLogs_status") AND ("failureReason" IS NULL))))
CreditProductSubscriptionPackages CreditProductSubscriptionPacka_paymentFrequencyTimePeriod_check (("paymentFrequencyTimePeriod" > 0))
CreditProductSubscriptionPackages CreditProductSubscriptionPackages_creditQuantity_check (("creditQuantity" > 0))
CreditProductSubscriptionPackages CreditProductSubscriptionPackages_productQuantity_check (("productQuantity" > 0))
CreditProductSubscriptionPackages timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
OfflineSalesTransactions OfflineSalesTransactions_price_check ((((price IS NOT NULL) AND (price > (0)::numeric)) OR (price IS NULL)))
CompanyProductInventoryAddThroughOfflineSalesLogs CompanyProductInventoryAddThroughOfflineSalesLogs_price_check ((((price IS NOT NULL) AND (price > (0)::numeric)) OR (price IS NULL)))
CreditPurchaseOrderInvoices CreditPurchaseOrderInvoices_failureMessage_nullable_check ((((status = 'FAILED'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status") AND ("failureMessage" IS NOT NULL)) OR ((status = ANY (ARRAY['IN_PROGRESS'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status", 'SUCCESS'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status"])) AND ("failureMessage" IS NULL)) OR (status = 'NOT_AVAILABLE'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status")))
CreditPurchaseOrderXenditInvoicePaymentRequests CreditPurchaseOrderXenditInvoicePaymentRequests_expiryAt_check (("expiryAt" > "requestedAt"))
ProductUsageJobProductBenefits ProductUsageJobProductBenefits_amount_check ((amount > 0))
CompanyCreditInventoryBreakdowns CompanyCreditInventoryBreakdowns_amount_check ((amount >= 0))
ProductCreditBenefits ProductCreditBenefits_amount_check ((amount > 0))
ProductCreditBenefits timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
RecurringCreditTopUp RecurringCreditTopUp_amount_check ((amount > 0))
RecurringCreditTopUp RecurringCreditTopUp_creditProductPurchaseOrderId_offlineSalesT ((("creditProductPurchaseOrderId" IS NOT NULL) OR ("offlineSalesTransactionId" IS NOT NULL)))
RecurringCreditTopUp RecurringCreditTopUp_nextAllocationDate_less_than_equal_endDate ((("nextAllocationDate" IS NULL) OR (("nextAllocationDate" >= "startDate") AND ("nextAllocationDate" < "endDate"))))
RecurringCreditTopUp RecurringCreditTopUp_startDate_less_than_equal_endDate_check (("startDate" < "endDate"))
RecurringCreditTopUp timePeriod_and_timePeriodUnit_check (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL))))
PurchaseOrderProductAfterPaymentActionLogs PurchaseOrderProductAfterPaymentActionLogs_failureType_nullable ((((status = 'FAILED'::employer_purchases."enum_PurchaseOrderProductAfterPaymentActionLogs_status") AND ("failureType" IS NOT NULL)) OR ((status <> 'FAILED'::employer_purchases."enum_PurchaseOrderProductAfterPaymentActionLogs_status") AND ("failureType" IS NULL))))
PurchaseOrderPricingDetails PurchaseOrderPricingDetails_subtotal_check ((subtotal >= (0)::numeric))
PurchaseOrderPricingDetails PurchaseOrderPricingDetails_taxPercentage_check (("taxPercentage" >= (0)::numeric))