mirror of
https://github.com/simonw/datasette.git
synced 2026-06-05 08:37:00 +02:00
parent
e0d39ba69f
commit
e62a5ea337
8 changed files with 63 additions and 63 deletions
|
|
@ -2158,13 +2158,13 @@ The internal database schema is as follows:
|
|||
options TEXT NOT NULL DEFAULT '{}',
|
||||
parameters TEXT NOT NULL DEFAULT '[]',
|
||||
is_write INTEGER NOT NULL DEFAULT 0 CHECK (is_write IN (0, 1)),
|
||||
published INTEGER NOT NULL DEFAULT 0 CHECK (published IN (0, 1)),
|
||||
is_published INTEGER NOT NULL DEFAULT 0 CHECK (is_published IN (0, 1)),
|
||||
source TEXT NOT NULL DEFAULT 'user',
|
||||
owner_id TEXT,
|
||||
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (database_name, name),
|
||||
CHECK (is_write = 0 OR published = 0)
|
||||
CHECK (is_write = 0 OR is_published = 0)
|
||||
);
|
||||
CREATE INDEX queries_owner_idx
|
||||
ON queries(owner_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue