CompanyCreditPaymentLogs


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19 √ nextval('employer_purchases."CompanyCreditPaymentLogs_id_seq"'::regclass)
paymentNumber varchar 64 null

A unique 18- or 19-digit numeric string generated by the Snowflake algorithm, used to identify this payment record across all systems.

orderNumber varchar 64 null
companyId uuid 2147483647 null
Companies.id CompanyCreditPaymentLogs_companyId_fkey R
userId uuid 2147483647 null
Users.id CompanyCreditPaymentLogs_userId_fkey R
paidCredits int8 19 null
paymentStatus "employer_purchases"."enum_CompanyCreditPaymentLogs_paymentStatus" 2147483647 null
processingStatus "employer_purchases"."enum_CompanyCreditPaymentLogs_processingStatus" 2147483647 'UNPROCESSED'::employer_purchases."enum_CompanyCreditPaymentLogs_processingStatus"
paymentSnapshot jsonb 2147483647 null
processInfo jsonb 2147483647 √ null
createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
CompanyCreditPaymentLogs_pkey Primary key Asc id
CompanyCreditPaymentLogs_companyId_idx Performance Asc companyId
CompanyCreditPaymentLogs_createdAt_idx Performance Asc createdAt
CompanyCreditPaymentLogs_orderNumber_idx Performance Asc orderNumber
CompanyCreditPaymentLogs_paymentNumber_key Must be unique Asc paymentNumber
CompanyCreditPaymentLogs_paymentStatus_idx Performance Asc paymentStatus
CompanyCreditPaymentLogs_processingStatus_idx Performance Asc processingStatus
CompanyCreditPaymentLogs_userId_idx Performance Asc userId

Relationships