Subscriptions table

The Subscriptions table in the Shipfolio schema has 20 columns, keyed by Id, with 2 foreign keys to AspNetUsers and Companies. 2 columns in Comps and PartnershipGives reference it.

Columns (20)

Columns of the Subscriptions table
ColumnTypeConstraintsDescription
Iduuidprimary key
UserIduuidnot null, references AspNetUsers.Id
Planvarchar(50)not null
StripeCustomerIdvarchar(255)not null
StripeSubscriptionIdvarchar(255)not null
Statusvarchar(50)not null
CurrentPeriodEndtimestamptznot null
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
GiftNotetext
GiftedByuuid
CompanyIduuidreferences Companies.Id
Quantityintegernot null
Storevarchar(50)not null
CancelAtPeriodEndbooleannot null
CanceledAttimestamptz
Intervalvarchar(50)
PriceCentsbigint
TrialEndsAttimestamptz
StartsAttimestamptz

Indexes (3)

  • (CompanyId) (IX_Subscriptions_CompanyId)
  • (StripeSubscriptionId) unique (IX_Subscriptions_StripeSubscriptionId)
  • (UserId) (IX_Subscriptions_UserId)

Relationships