-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlite.sql
More file actions
42 lines (38 loc) · 1.01 KB
/
sqlite.sql
File metadata and controls
42 lines (38 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- tool-manage V2 sqlite schema
-- This file documents the target runtime schema. Runtime migrations remain in src/data/sqlite.js.
PRAGMA foreign_keys = ON;
CREATE TABLE IF NOT EXISTS commands (
id INTEGER PRIMARY KEY AUTOINCREMENT,
command_name TEXT NOT NULL UNIQUE,
command_path TEXT,
package_name TEXT,
package_json_path TEXT,
description TEXT,
version TEXT,
repository TEXT,
author TEXT,
homepage TEXT,
bugs TEXT,
license TEXT,
keywords TEXT,
bin TEXT,
engines TEXT,
help_preview TEXT,
metadata_source TEXT NOT NULL DEFAULT 'detected',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL,
deleted_at TEXT
);
CREATE TABLE IF NOT EXISTS command_overrides (
id INTEGER PRIMARY KEY AUTOINCREMENT,
command_id INTEGER NOT NULL,
field_name TEXT NOT NULL,
field_value TEXT,
updated_at TEXT NOT NULL,
UNIQUE(command_id, field_name),
FOREIGN KEY(command_id) REFERENCES commands(id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS app_meta (
key TEXT PRIMARY KEY,
value TEXT
);