Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement usage tracker + quotas
- Loading branch information
1 parent
e4d61ee
commit fd87109
Showing
33 changed files
with
913 additions
and
706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- Add down migration script here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Add up migration script here | ||
CREATE TABLE usage ( | ||
id VARCHAR(50) NOT NULL, | ||
is_workspace BOOLEAN NOT NULL, | ||
month_ INTEGER NOT NULL, | ||
usage INTEGER NOT NULL, | ||
PRIMARY KEY (id, is_workspace, month_) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- Add down migration script here | ||
ALTER TABLE queue DROP COLUMN email; | ||
ALTER TABLE workspace_settings DROP COLUMN slack_email; | ||
ALTER TABLE schedule DROP COLUMN email; | ||
ALTER TABLE schedule DROP COLUMN error; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Add up migration script here | ||
ALTER TABLE queue ADD COLUMN email VARCHAR(50) NOT NULL DEFAULT 'missing@email.xyz'; | ||
ALTER TABLE workspace_settings ADD COLUMN slack_email VARCHAR(50) NOT NULL DEFAULT 'missing@email.xyz';; | ||
ALTER TABLE schedule ADD COLUMN email VARCHAR(50) NOT NULL DEFAULT 'missing@email.xyz'; | ||
ALTER TABLE schedule ADD COLUMN error TEXT; | ||
|
Oops, something went wrong.