summaryrefslogtreecommitdiffstats
path: root/src/db/init.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/init.sql')
-rw-r--r--src/db/init.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/init.sql b/src/db/init.sql
new file mode 100644
index 0000000..8d2645f
--- /dev/null
+++ b/src/db/init.sql
@@ -0,0 +1,12 @@
+\set database_name teamdraft
+\set schema :database_name
+\set owner :database_name
+
+\i ./src/db/server.sql
+\i ./src/db/database.sql
+\i ./src/db/auth.sql
+\i ./src/db/leagues.sql
+\i ./src/db/teams.sql
+\i ./src/db/seasons.sql
+\i ./src/db/drafts.sql
+\i ./src/db/scores.sql