added access control

This commit is contained in:
lucio committed 2026-05-21 20:45:58 -07:00
1 parent 00a5a0ec76
commit 681a2e1e6d
14 files changed
+1283 -206

No files matched your search

+2
View File
@@ -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 (