ERD test 2
Tables (4)
address (untitled)
- id (addressID) — 정수형 — Primary key — NOT NULL
- id (userID) — 정수형 — Foreign key → user.id — NOT NULL
- zonecode — 문자형
- mainaddress — 문자형
- detailaddress — 문자형
item (Untitled2)
- id (itemID) — 정수형 — Primary key — NOT NULL
- name — 문자형
- explanation — 문자형
- price — 정수형
- createdAt — 날짜형
- id (userID) — 정수형 — Foreign key → user.id — NOT NULL
like (Untitled3)
- id (likedID) — 정수형 — Primary key — NOT NULL
- id (userID) — 정수형 — Foreign key → user.id — NOT NULL
- id (itemID) — 정수형 — Foreign key → item.id — NOT NULL
user (Untitled)
- id (userID) — 정수형 — Primary key — NOT NULL
- userid — 문자형
- password — 문자형
- nickname — 문자형
- phonenumber — 문자형
- createdAt — 날짜형