feat: order comments, duplicate button, improved status timeline

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-12 11:37:45 +03:00
parent 12cca64f61
commit b2dd497d1f
3 changed files with 160 additions and 11 deletions
@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS order_comments (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
order_id UUID NOT NULL REFERENCES orders(id) ON DELETE CASCADE,
author TEXT NOT NULL,
body TEXT NOT NULL,
created_at TIMESTAMPTZ DEFAULT now()
);
ALTER TABLE order_comments ENABLE ROW LEVEL SECURITY;
CREATE POLICY "auth_all" ON order_comments FOR ALL TO authenticated USING (true) WITH CHECK (true);