--- /dev/null
+id,tablename,guid,constraint,action
+1,users,a0fdac7ab369de43f029a460879c854f,,INSERT
+2,users,7abf05c84beb849628a44336acfe7a5b,,INSERT
+3,users,2454c8ab7c575cd2610f9977ed3b2b61,,INSERT
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
.mode csv
+.nullvalue NULL
.import '| tail -n +2 ./data/bmr_eqs.csv' bmr_eqs
.import '| tail -n +2 ./data/bf_eqs.csv' bf_eqs
CREATE TABLE bmr_eqs (
id integer PRIMARY KEY AUTOINCREMENT,
- name text
+ name text NOT NULL
);
CREATE TABLE bf_eqs (
id integer PRIMARY KEY AUTOINCREMENT,
- name text
+ name text NOT NULL
);
--
id integer PRIMARY KEY AUTOINCREMENT,
guid text NOT NULL DEFAULT (lower(hex (randomblob (16)))) UNIQUE,
user_id int NOT NULL,
+ created int DEFAULT (strftime ('%s', 'now')),
+ updated int DEFAULT (strftime ('%s', 'now')),
+ synced int DEFAULT -1,
date int DEFAULT (strftime ('%s', 'now')),
tags text,
notes text,