summaryrefslogtreecommitdiff
path: root/db/create_script.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/create_script.sql')
-rw-r--r--db/create_script.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/create_script.sql b/db/create_script.sql
index 150e9c4..900857c 100644
--- a/db/create_script.sql
+++ b/db/create_script.sql
@@ -15,9 +15,10 @@ CREATE TABLE RangedWeapons (
);
CREATE TABLE Users (
- Id UUID PRIMARY KEY,
+ Id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
Username TEXT NOT NULL UNIQUE,
/* SHA512 encryption */
PasswordHash VARCHAR(512) NOT NULL UNIQUE,
Role TEXT NOT NULL
);
+