chat.sad.ovh/drizzle/0007_outstanding_punisher.sql
2026-01-04 20:26:42 +02:00

9 lines
No EOL
416 B
SQL

CREATE TABLE `invite` (
`id` text PRIMARY KEY NOT NULL,
`server_id` text NOT NULL,
`code` text NOT NULL,
FOREIGN KEY (`server_id`) REFERENCES `server`(`id`) ON UPDATE no action ON DELETE no action
);
--> statement-breakpoint
ALTER TABLE `friendRequest` ADD `from_username` text NOT NULL REFERENCES user(id);--> statement-breakpoint
ALTER TABLE `friendRequest` ADD `to_username` text NOT NULL REFERENCES user(id);