feat: database migrations

This commit is contained in:
Per Stark
2025-05-04 21:16:09 +02:00
parent 43fcf6032d
commit 4d1d1eb22c
28 changed files with 880 additions and 218 deletions
+7
View File
@@ -0,0 +1,7 @@
# Defines the schema for the 'analytics' table.
DEFINE TABLE IF NOT EXISTS analytics SCHEMALESS;
# Custom fields from the Analytics struct
DEFINE FIELD IF NOT EXISTS page_loads ON analytics TYPE number;
DEFINE FIELD IF NOT EXISTS visitors ON analytics TYPE number;