@codified/cli 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,16 @@ services:
29
29
  - nats-data:/data
30
30
  restart: unless-stopped
31
31
 
32
+ redis:
33
+ image: redis:7-alpine
34
+ ports:
35
+ - "6379:6379"
36
+ command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
37
+ volumes:
38
+ - redis-data:/data
39
+ restart: unless-stopped
40
+
32
41
  volumes:
33
42
  postgres-data:
34
43
  nats-data:
44
+ redis-data:
@@ -0,0 +1,12 @@
1
+ CREATE TABLE IF NOT EXISTS metabolism_audit (
2
+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
3
+ event_type TEXT NOT NULL,
4
+ node_ids TEXT[] NOT NULL DEFAULT '{}',
5
+ action TEXT NOT NULL,
6
+ reason TEXT,
7
+ metadata JSONB NOT NULL DEFAULT '{}',
8
+ created_at TIMESTAMPTZ NOT NULL DEFAULT now()
9
+ );
10
+
11
+ CREATE INDEX IF NOT EXISTS idx_metabolism_audit_event_type ON metabolism_audit(event_type);
12
+ CREATE INDEX IF NOT EXISTS idx_metabolism_audit_created_at ON metabolism_audit(created_at DESC);