summaryrefslogtreecommitdiff
path: root/src/index.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-08 17:53:55 +0200
committerJonas Kohl2024-09-08 17:53:55 +0200
commit415a0a96a76afbe7f1ad2f51862641793caf1b6c (patch)
tree1168316bff6a2ec04ee27db5ada5431ba6631ce4 /src/index.php
Initial commit
Diffstat (limited to 'src/index.php')
-rw-r--r--src/index.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/index.php b/src/index.php
new file mode 100644
index 0000000..62a300a
--- /dev/null
+++ b/src/index.php
@@ -0,0 +1,13 @@
+<?php
+
+use mystic\forum\Database;
+use mystic\forum\orm\Post;
+use mystic\forum\orm\Topic;
+use mystic\forum\orm\User;
+
+require_once __DIR__ . "/vendor/autoload.php";
+
+$db = new Database(Database::getConnectionString("db", "postgres", "postgres", "postgres"));
+$db->ensureTable(User::class);
+$db->ensureTable(Topic::class);
+$db->ensureTable(Post::class);