diff --git a/src/models/pnid.ts b/src/models/pnid.ts index 74613f6..dfc01d6 100644 --- a/src/models/pnid.ts +++ b/src/models/pnid.ts @@ -101,6 +101,14 @@ const PNIDSchema = new Schema({ connections: { discord: { id: String + }, + stripe: { + customer_id: String, + subscription_id: String, + price_id: String, + tier_level: Number, + tier_name: String, + latest_webhook_timestamp: Number } } }, { id: false }); diff --git a/src/types/mongoose-unique-validator.d.ts b/src/types/mongoose-unique-validator.d.ts new file mode 100644 index 0000000..0909028 --- /dev/null +++ b/src/types/mongoose-unique-validator.d.ts @@ -0,0 +1 @@ +declare module 'mongoose-unique-validator'; \ No newline at end of file diff --git a/src/types/mongoose/pnid.ts b/src/types/mongoose/pnid.ts index ee1fda6..07a876e 100644 --- a/src/types/mongoose/pnid.ts +++ b/src/types/mongoose/pnid.ts @@ -60,7 +60,17 @@ export interface IPNID { connections: { discord: { id: string; - } + }; + connections: { + stripe: { + customer_id: string; + subscription_id: string; + price_id: string; + tier_level: number; + tier_name: string; + latest_webhook_timestamp: number; + }; + }; }; }