Initial commit

This commit is contained in:
Foxfire
2025-09-04 03:03:18 +10:00
commit 1657089957
58 changed files with 9082 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from data import Registry, RowModel, Table
from data.columns import String, Timestamp, Integer, Bool
class VersionHistory(RowModel):
"""
CREATE TABLE version_history(
component TEXT NOT NULL,
from_version INTEGER NOT NULL,
to_version INTEGER NOT NULL,
author TEXT NOT NULL,
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW(),
);
"""
_tablename_ = 'version_history'
_cache_ = {}
component = String()
from_version = Integer()
to_version = Integer()
author = String()
_timestamp = Timestamp()
class BotData(Registry):
version_history = VersionHistory.table