start roles
This commit is contained in:
parent
ac7c4f77fb
commit
0a8a9236b1
13 changed files with 1809 additions and 191 deletions
15
drizzle/0005_round_gwen_stacy.sql
Normal file
15
drizzle/0005_round_gwen_stacy.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
ALTER TABLE `invite` RENAME COLUMN "expires_at" TO "created_at";--> statement-breakpoint
|
||||
CREATE TABLE `role` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`server_id` text NOT NULL,
|
||||
`users` text DEFAULT '[]' NOT NULL,
|
||||
`permissions` text DEFAULT '{}' NOT NULL,
|
||||
`created_at` integer NOT NULL,
|
||||
`created_by` text NOT NULL,
|
||||
FOREIGN KEY (`server_id`) REFERENCES `server`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`created_by`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE `channel` ADD `role_overwrites` text DEFAULT '{}' NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE `server` ADD `roles` text DEFAULT '[]' NOT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue