Initial commit: backend

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-03 23:17:33 +03:30
co-authored by Cursor
commit b0642a26e0
43 changed files with 6865 additions and 0 deletions
@@ -0,0 +1,21 @@
-- Add Other catch-all to AriyaWay marketplace categories
ALTER TABLE categories ADD COLUMN IF NOT EXISTS tags TEXT[] NOT NULL DEFAULT '{}';
INSERT INTO categories (parent_id, name, name_fa, slug, sort_order, tags, is_active)
VALUES (
NULL,
'Other',
'سایر',
'other',
99,
ARRAY['other', 'misc', 'miscellaneous', 'uncategorized', 'general', 'سایر', 'متفرقه', 'عمومی']::text[],
TRUE
)
ON CONFLICT (slug) DO UPDATE SET
parent_id = NULL,
name = EXCLUDED.name,
name_fa = EXCLUDED.name_fa,
sort_order = EXCLUDED.sort_order,
tags = EXCLUDED.tags,
is_active = TRUE,
updated_at = NOW();