statuses update
This commit is contained in:
20
k8s/postgres-init-configmap.yaml
Normal file
20
k8s/postgres-init-configmap.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: postgres-init
|
||||
namespace: audio-pipeline
|
||||
data:
|
||||
init.sql: |
|
||||
CREATE TABLE IF NOT EXISTS results (
|
||||
task_id TEXT PRIMARY KEY,
|
||||
filename TEXT,
|
||||
transcription TEXT,
|
||||
analysis JSONB,
|
||||
tagging JSONB,
|
||||
metadata JSONB,
|
||||
status TEXT NOT NULL DEFAULT 'pending',
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
ALTER TABLE results ADD COLUMN IF NOT EXISTS metadata JSONB;
|
||||
Reference in New Issue
Block a user