From 623a553e8a03d36c074e23b9ad259a9942a7241a Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Wed, 26 Oct 2022 00:33:12 +0300
Subject: init sql for users

---
 backend/database/init.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 backend/database/init.sql

(limited to 'backend/database/init.sql')

diff --git a/backend/database/init.sql b/backend/database/init.sql
new file mode 100644
index 0000000..bf10948
--- /dev/null
+++ b/backend/database/init.sql
@@ -0,0 +1,11 @@
+DROP TABLE IF EXISTS users;
+CREATE TABLE users (
+  steam_id BIGINT,
+  username VARCHAR(128) NOT NULL,
+  avatar_link VARCHAR(128) NOT NULL,
+  country_code CHAR(2) NOT NULL DEFAULT 'X',
+  created_at TIMESTAMP NOT NULL,
+  updated_at TIMESTAMP,
+  user_type SMALLINT NOT NULL,
+  PRIMARY KEY (steam_id)
+);
\ No newline at end of file
-- 
cgit v1.2.3

