Initial hop. implementation and UGREEN NAS deployment guide
This commit is contained in:
21
apps/server/drizzle/0007_rapid_morph.sql
Normal file
21
apps/server/drizzle/0007_rapid_morph.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
CREATE TABLE `request_receipt_accounts` (
|
||||
`requestId` text PRIMARY KEY NOT NULL,
|
||||
`userId` text NOT NULL,
|
||||
`sessionId` text NOT NULL,
|
||||
FOREIGN KEY (`requestId`) REFERENCES `transfer_requests`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`userId`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`sessionId`) REFERENCES `account_sessions`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `vault_transfers` (
|
||||
`requestId` text PRIMARY KEY NOT NULL,
|
||||
`accessId` text NOT NULL,
|
||||
`userId` text NOT NULL,
|
||||
`sessionId` text NOT NULL,
|
||||
FOREIGN KEY (`requestId`) REFERENCES `transfer_requests`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`accessId`) REFERENCES `item_access`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`userId`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action,
|
||||
FOREIGN KEY (`sessionId`) REFERENCES `account_sessions`(`id`) ON UPDATE no action ON DELETE no action
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE `item_access` ADD `note` text;
|
||||
Reference in New Issue
Block a user