@hazem3500/palette 0.9.130 → 0.9.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node.mjs +77 -25
- package/dist/postgres/010_project_bot_tokens.sql +10 -0
- package/dist/server.js +75 -24
- package/package.json +2 -1
- package/server/bot-tokens.ts +38 -0
- package/server/index.ts +10 -5
- package/server/migrations/0024_project_bot_tokens.sql +10 -0
- package/server/project-management.ts +17 -0
- package/server/webhooks.ts +5 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
CREATE TABLE project_bot_tokens (
|
|
2
|
+
id text PRIMARY KEY,
|
|
3
|
+
project text NOT NULL,
|
|
4
|
+
user_id text NOT NULL REFERENCES users(id),
|
|
5
|
+
token_hash text NOT NULL,
|
|
6
|
+
created_by text NOT NULL REFERENCES users(id),
|
|
7
|
+
created_at bigint NOT NULL,
|
|
8
|
+
revoked_at bigint
|
|
9
|
+
);
|
|
10
|
+
CREATE INDEX project_bot_tokens_project ON project_bot_tokens(project);
|