erd copy용5
테이블 (10)
권한 (authority)
- authority_id — 기본 키 — NOT NULL
- name
사용자 (user)
- user_id — 기본 키 — NOT NULL
- status_id — 외래 키 → 상태.status_id — NOT NULL
- email
- password
- nickname
- phone_number
- provider
- created_at
- updated_at
사용자_제재권한 (user_authority)
- user_authority_id — 기본 키 — NOT NULL
- user_id — 외래 키 → 사용자.user_id — NOT NULL
- authority_id — 외래 키 → 권한.authority_id — NOT NULL
- created_at
- updated_at
- expired_at
- Field
상태 (status)
- status_id — 기본 키 — NOT NULL
- description
- code
- domain
신고 내역 (report_history)
- report_history_id — 기본 키 — NOT NULL
- report_type_id — 외래 키 → 신고 타입.report_type_id — NOT NULL
- user_id — 외래 키 → 사용자.user_id — NOT NULL
- seller_id — 외래 키 → 판매글.transaction_feed_id — NOT NULL
- transaction_feed_id — 외래 키 → 판매글.transaction_feed_id — NOT NULL
- status_id — 외래 키 → 상태.status_id — NOT NULL
- reason
- created_at
신고 타입 (report_type)
- report_type_id — 기본 키 — NOT NULL
- type
- explain
제재 대상 (restriction_target)
- Key — 기본 키 — NOT NULL
- user_id — 외래 키 → 사용자.user_id — NOT NULL
- report_type_id — 외래 키 → 신고 타입.report_type_id — NOT NULL
- restriction_type_id — 외래 키 → 제재 타입.restriction_type_id — NOT NULL
- status_id — 외래 키 → 상태.status_id — NOT NULL
- expires_at
제재 타입 (restriction_type)
- restriction_type_id — 기본 키 — NOT NULL
- content
- duration
제재타입_권한 (restriction_type_authority)
- restriction_authority_id — 기본 키 — NOT NULL
- authority_id — 외래 키 → 권한.authority_id — NOT NULL
- restriction_type_id — 외래 키 → 제재 타입.restriction_type_id — NOT NULL
판매글 (transaction_feed)
- transaction_feed_id — 기본 키 — NOT NULL
- seller_id — 외래 키 → 사용자.user_id — NOT NULL
- status_id — 외래 키 → 상태.status_id — NOT NULL
- title
- content
- sales_price
- sales_data_amount
- default_iamge_number
- expires_at
- created_at
- update_at
- is_deleted