后台管理

审核、寄售、仲裁、放款和词表维护。

事项类型用户状态优先级操作
饭制贴纸包需确认非官方标记listing_reviewsundaylab待审核normal
Star Road 套装入库验货consignmentbluehour仓库待拍照high
订单 ORD-2048 超时确认放款payoutallyz-rose可放款normal
重复盗图举报reportmintcard待仲裁urgent

Supabase schema preview


create table profiles (
  id uuid primary key references auth.users(id),
  display_name text not null,
  locale text default 'zh-CN',
  region text,
  seller_rating numeric default 0,
  is_admin boolean default false
);

create table members (
  id text primary key,
  name text not null,
  cn_name text not null,
  featured boolean default false
);

create table listings (
  id uuid primary key default gen_random_uuid(),
  seller_id uuid not null references profiles(id),
  member_id text not null references members(id),
  title text not null,
  category text not null,
  era text,
  version text,
  condition text not null,
  official boolean not null,
  fulfillment text check (fulfillment in ('seller_ship', 'consignment')),
  status text not null default 'pending_review',
  price numeric not null,
  currency text not null check (currency in ('CNY', 'USD')),
  origin text,
  created_at timestamptz default now()
);

create table orders (
  id uuid primary key default gen_random_uuid(),
  listing_id uuid not null references listings(id),
  buyer_id uuid not null references profiles(id),
  seller_id uuid not null references profiles(id),
  status text not null default 'pending_payment',
  amount numeric not null,
  currency text not null,
  platform_fee numeric not null,
  created_at timestamptz default now()
);

create table watchlists (
  id uuid primary key default gen_random_uuid(),
  user_id uuid not null references profiles(id),
  member_id text references members(id),
  category text,
  max_price numeric,
  currency text,
  alert_type text not null
);