remove folder notion
This commit is contained in:
@@ -4,7 +4,7 @@ CREATE TABLE tags (
|
|||||||
id TEXT PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),
|
id TEXT PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),
|
||||||
parent_tag_id TEXT,
|
parent_tag_id TEXT,
|
||||||
tag_name TEXT NOT NULL, -- exemple: Brice, vélo, facture ...
|
tag_name TEXT NOT NULL, -- exemple: Brice, vélo, facture ...
|
||||||
tag_type TEXT NOT NULL DEFAULT 'none', -- exemple: entity, none, folder
|
tag_type TEXT NOT NULL DEFAULT 'none', -- exemple: entity, none
|
||||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
CONSTRAINT fk_parent_tag FOREIGN KEY(parent_tag_id) REFERENCES tags(id)
|
CONSTRAINT fk_parent_tag FOREIGN KEY(parent_tag_id) REFERENCES tags(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user