feat(logs): persist business events
This commit is contained in:
@@ -230,6 +230,15 @@ CREATE TABLE IF NOT EXISTS billing_ledger (
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_billing_ledger_key
|
||||
ON billing_ledger(managed_key_id, id DESC);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS business_events (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
occurred_at TEXT NOT NULL,
|
||||
event TEXT NOT NULL,
|
||||
status TEXT NOT NULL
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_business_events_time
|
||||
ON business_events(occurred_at DESC, id DESC);
|
||||
`
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user