Skip to content

Commit

Permalink
add subscriptions table
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Jan 22, 2024
1 parent 4c5f643 commit d1267e2
Show file tree
Hide file tree
Showing 10 changed files with 1,283 additions and 16 deletions.
12 changes: 12 additions & 0 deletions drizzle/0037_modern_fixer.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CREATE TABLE `subscriptions` (
`id` varchar(128) NOT NULL,
`user_id` varchar(191) NOT NULL,
`stripe_subscription_id` varchar(191),
`stripe_price_id` varchar(191),
`stripe_customer_id` varchar(191),
`stripe_current_period_end` timestamp,
`created_at` timestamp NOT NULL DEFAULT (now()),
`updated_at` timestamp ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `subscriptions_id` PRIMARY KEY(`id`),
CONSTRAINT `subscriptions_user_id_unique` UNIQUE(`user_id`)
);
Loading

1 comment on commit d1267e2

@vercel
Copy link

@vercel vercel bot commented on d1267e2 Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.