copy용 erd3
테이블 (10)
데이터 거래 내역 (data_transaction_history)
- transaction_history_id — 기본 키 — NOT NULL
- transaction_feed_id — 외래 키 → 판매글.transaction_feed_id — NOT NULL
- buyer_id — 외래 키 → 사용자.user_id — NOT NULL
- transaction_at
- transaction_final_price
- is_deleted
사용자 (user)
- user_id — 기본 키 — NOT NULL
- telecom_company_id — 외래 키 → 통신사.telecom_company_id — NOT NULL
- status_id — 외래 키 → 상태.status_id — NOT NULL
- email
- password
- nickname
- phone_number
- provider
- created_at
- updated_at
상태 (status)
- status_id — 기본 키 — NOT NULL
- description
- code
- domain
입찰 (bids)
- bids_id — 기본 키 — NOT NULL
- transaction_feed_id — 외래 키 → 판매글.transaction_feed_id — NOT NULL
- user_id — 외래 키 → 사용자.user_id — NOT NULL
- bid_amount
- created_at
찜 (liked)
- like_id — 기본 키 — NOT NULL
- transaction_feed_id — 외래 키 → 판매글.transaction_feed_id — NOT NULL
- user_id — 외래 키 → 사용자.user_id — NOT NULL
통신사 (telecom_company)
- telecom_company_id — 기본 키 — NOT NULL
- name
통신사별 거래량 통계 (transaction_amount_statistics)
- statistics_id — 기본 키 — NOT NULL
- telecom_company_id — 외래 키 → 통신사.telecom_company_id — NOT NULL
- sales_type_id — 외래 키 → 판매 타입.sales_type_id — NOT NULL
- created_at
- updated_at
- statics_time
- statistic_type
- transaction_amount
통신사별 시세 통계 (market_statistics)
- statistics_id — 기본 키 — NOT NULL
- telecom_company_id — 외래 키 → 통신사.telecom_company_id — NOT NULL
- statics_time
- transaction_amount
- average_price
판매 타입 (sales_type)
- sales_type_id — 기본 키 — NOT NULL
- sales_type_name
판매글 (transaction_feed)
- transaction_feed_id — 기본 키 — NOT NULL
- seller_id — 외래 키 → 사용자.user_id — NOT NULL
- sales_type_id — 외래 키 → 판매 타입.sales_type_id — NOT NULL
- telecom_company_id — 외래 키 → 통신사.telecom_company_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