add database scripts for new table template

This commit is contained in:
Eoin McAfee 2021-05-19 13:35:02 +01:00
parent 04ec418c44
commit d3acd5d823
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,10 @@
-- name: create-table-template
CREATE TABLE IF NOT EXISTS template (
template_id INTEGER PRIMARY KEY AUTO_INCREMENT
,template_name VARCHAR(500)
,template_data BLOB
,template_created INTEGER
,template_updated INTEGER
,UNIQUE(template_name)
);

View file

@ -0,0 +1,9 @@
-- name: create-table-template
CREATE TABLE IF NOT EXISTS template (
template_id SERIAL PRIMARY KEY
,template_name TEXT UNIQUE
,template_data BYTEA
,template_created INTEGER
,template_updated INTEGER
);

View file

@ -0,0 +1,9 @@
-- name: create-table-template
CREATE TABLE IF NOT EXISTS template (
template_id INTEGER PRIMARY KEY AUTOINCREMENT
,template_name TEXT UNIQUE
,template_data BLOB
,template_created INTEGER
,template_updated INTEGER
);