과제3
테이블 (9)
게시글 (Post)
- postId — 기본 키 — NOT NULL
- ptitle
- pContent (pcontent)
- pdate
공급 (Supply)
- pid — 외래 키 → 상품.pid — NOT NULL
- mname — 외래 키 → 제조업체.mname — NOT NULL
- sdate
- squntity (squantity)
관리 (Manage)
- postId — 외래 키 → 게시글.postId — NOT NULL
- mcode — 외래 키 → 관리인.mcode — NOT NULL
- mdate
관리인 (Manager)
- mcode — 기본 키 — NOT NULL
- mname
상품 (Product)
- pid — 기본 키 — NOT NULL
- pname
- stocks
- price
작성 (Write)
- mid — 외래 키 → 회원.mid — NOT NULL
- postId — 외래 키 → 게시글.postId — NOT NULL
제조업체 (Manufacturer)
- mname — 기본 키 — NOT NULL
- phonenumber
- location
- superviser
주문 (Order)
- pid — 외래 키 → 상품.pid — NOT NULL
- mid — 외래 키 → 회원.mid — NOT NULL
- oid
- oquantity
- olocation
- odate
회원 (Member)
- mid — 기본 키 — NOT NULL
- password
- name
- age
- job
- grade
- points
- postalCode
- primaryAddress
- subAddress