aboutsummaryrefslogtreecommitdiffstats
path: root/crates/rocie-server/src/storage/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-server/src/storage/migrate')
-rw-r--r--crates/rocie-server/src/storage/migrate/sql/0->1.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/rocie-server/src/storage/migrate/sql/0->1.sql b/crates/rocie-server/src/storage/migrate/sql/0->1.sql
index 664f40f..e3dd879 100644
--- a/crates/rocie-server/src/storage/migrate/sql/0->1.sql
+++ b/crates/rocie-server/src/storage/migrate/sql/0->1.sql
@@ -27,6 +27,14 @@ CREATE TABLE parents (
FOREIGN KEY(parent) REFERENCES parents(id)
) STRICT;
+-- Stores the registered users.
+CREATE TABLE users (
+ id TEXT UNIQUE NOT NULL PRIMARY KEY,
+ name TEXT UNIQUE NOT NULL,
+ password_hash TEXT NOT NULL,
+ description TEXT
+) STRICT;
+
-- Record with barcodes were bought, and how much of this buy is already used up.
CREATE TABLE buys (
buy_id TEXT UNIQUE NOT NULL PRIMARY KEY,