added access control
This commit is contained in:
1 parent
00a5a0ec76
commit
681a2e1e6d
14 files changed
+1283
-206
No files matched your search
@@ -7,6 +7,7 @@ PRAGMA foreign_keys = ON;
|
||||
CREATE TABLE IF NOT EXISTS locations (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL,
|
||||
slug TEXT NOT NULL DEFAULT '',
|
||||
description TEXT NOT NULL DEFAULT '',
|
||||
parent_id INTEGER REFERENCES locations(id) ON DELETE SET NULL,
|
||||
image_path TEXT NOT NULL DEFAULT '',
|
||||
@@ -16,6 +17,7 @@ CREATE TABLE IF NOT EXISTS locations (
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_locations_parent ON locations(parent_id);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_locations_slug ON locations(slug);
|
||||
|
||||
-- 2. Tags Table (Sleek labels for grouping items)
|
||||
CREATE TABLE IF NOT EXISTS tags (
|
||||
|
||||
Reference in new issue
Block a user