Add auth, rest api, svelte frontend, build structure
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
CREATE TABLE news (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
bio TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE retailer (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
bio TEXT
|
||||
);
|
23
internal/repository/migrations/01_schema.up.sql
Normal file
23
internal/repository/migrations/01_schema.up.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
CREATE TABLE IF NOT EXISTS news (
|
||||
id INTEGER PRIMARY KEY,
|
||||
news_title TEXT NOT NULL,
|
||||
news_text TEXT NOT NULL,
|
||||
news_date DATETIME,
|
||||
news_publish DATETIME,
|
||||
display TINYINT NOT NULL DEFAULT 0
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS retailer (
|
||||
id INTEGER PRIMARY KEY,
|
||||
shopname TEXT NOT NULL,
|
||||
url TEXT NOT NULL,
|
||||
country TEXT NOT NULL,
|
||||
display TINYINT NOT NULL DEFAULT 1
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS app_user (
|
||||
user_name TEXT PRIMARY KEY,
|
||||
user_pass TEXT DEFAULT NULL,
|
||||
realname TEXT DEFAULT NULL,
|
||||
email TEXT DEFAULT NULL
|
||||
);
|
Reference in New Issue
Block a user