From 3921db6166e2da895257496bb76dd115556699d3 Mon Sep 17 00:00:00 2001
From: Grail Finder <wohilas@gmail.com>
Date: Sat, 29 Mar 2025 11:12:53 +0300
Subject: init

---
 internal/database/migrations/002_defaults.up.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 internal/database/migrations/002_defaults.up.sql

(limited to 'internal/database/migrations/002_defaults.up.sql')

diff --git a/internal/database/migrations/002_defaults.up.sql b/internal/database/migrations/002_defaults.up.sql
new file mode 100644
index 0000000..4bf42b7
--- /dev/null
+++ b/internal/database/migrations/002_defaults.up.sql
@@ -0,0 +1,11 @@
+BEGIN TRANSACTION;
+
+CREATE TABLE IF NOT EXISTS defaults (
+    id INTEGER PRIMARY KEY AUTOINCREMENT,
+    key TEXT UNIQUE NOT NULL,
+    value TEXT NOT NULL,
+    description TEXT NOT NULL DEFAULT '',
+    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
+);
+
+COMMIT;
-- 
cgit v1.2.3

