mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 11:19:12 +01:00
* feat: add api keys * chore: address pull request feedback --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
8 lines
219 B
SQL
8 lines
219 B
SQL
CREATE TABLE `apiKey` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`apiKey` text NOT NULL,
|
|
`salt` text NOT NULL,
|
|
`userId` text NOT NULL,
|
|
FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|