mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-31 11:49:14 +01:00
9 lines
363 B
MySQL
9 lines
363 B
MySQL
|
|
CREATE TABLE `section_collapse_state` (
|
||
|
|
`user_id` text NOT NULL,
|
||
|
|
`section_id` text NOT NULL,
|
||
|
|
`collapsed` integer DEFAULT false NOT NULL,
|
||
|
|
PRIMARY KEY(`user_id`, `section_id`),
|
||
|
|
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade,
|
||
|
|
FOREIGN KEY (`section_id`) REFERENCES `section`(`id`) ON UPDATE no action ON DELETE cascade
|
||
|
|
);
|