mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 05:07:00 +01:00
- Messages dashboard: split-panel conversation list + thread view with mobile-responsive layout, deep-linking via ?conversation= param - Share listing: Web Share API with clipboard fallback + "Kopiert!" toast - Report listing: modal with reason radio buttons, DB migration, API route - Duplicate listing: copy fields + specs as draft, redirect to edit - JSON-LD Product schema on listing detail pages (Schema.org structured data) - Dynamic sitemap for active marketplace listings (/marketplace/sitemap.xml) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
701 B
SQL
17 lines
701 B
SQL
-- Listing reports for marketplace moderation
|
|
CREATE TABLE IF NOT EXISTS listing_reports (
|
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
listing_id UUID NOT NULL REFERENCES listings(id) ON DELETE CASCADE,
|
|
reporter_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
|
reason VARCHAR(50) NOT NULL,
|
|
details TEXT,
|
|
status VARCHAR(20) NOT NULL DEFAULT 'pending',
|
|
created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
|
|
reviewed_at TIMESTAMPTZ,
|
|
reviewed_by UUID REFERENCES users(id),
|
|
UNIQUE(listing_id, reporter_id)
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_listing_reports_listing ON listing_reports(listing_id);
|
|
CREATE INDEX IF NOT EXISTS idx_listing_reports_status ON listing_reports(status);
|