Skip to content

Commit

Permalink
fix(db): Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco (Valandur) committed Dec 8, 2019
1 parent 889bc70 commit 1342d5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/db/setup_db0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ CREATE TABLE `premiumSubscriptionGuilds` (

CREATE TABLE `premiumSubscriptions` (
`id` int(11) NOT NULL,
`createdAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`amount` decimal(10,2) DEFAULT NULL,
`maxGuilds` int(11) NOT NULL DEFAULT '5',
`isFreeTier` tinyint(1) NOT NULL DEFAULT '0',
`isPatreon` tinyint(1) NOT NULL DEFAULT '0',
`validUntil` datetime DEFAULT NULL,
`createdAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`memberId` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` text COLLATE utf8mb4_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Expand Down
1 change: 1 addition & 0 deletions src/framework/models/PremiumSubscription.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export class PremiumSubscription {
public id: string;
public createdAt?: Date;
public updatedAt?: Date;
public amount: number;
Expand Down

0 comments on commit 1342d5d

Please sign in to comment.