mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-24 03:18:26 +00:00
Add endpoints for managing spaces to openapi spec
This commit is contained in:
@ -19,12 +19,5 @@ CREATE TABLE "space_member" (
|
||||
foreign key ("user_id") references "user_"("uid")
|
||||
);
|
||||
|
||||
CREATE TABLE "space_item" (
|
||||
"id" varchar(254) not null primary key,
|
||||
"space_id" varchar(254) not null,
|
||||
"item_id" varchar(254) not null,
|
||||
"created" timestamp not null,
|
||||
unique ("space_id", "item_id"),
|
||||
foreign key ("space_id") references "space"("id"),
|
||||
foreign key ("item_id") references "item"("itemid")
|
||||
);
|
||||
ALTER TABLE "item"
|
||||
ADD COLUMN "space_id" varchar(254) NULL;
|
||||
|
Reference in New Issue
Block a user