얼라IT
테이블 (7)
Category (카테고리)
- categoryId (카테고리아이디) — 기본 키 — NOT NULL
- storeId (상점아이디) — 외래 키 → Product.storeId — NOT NULL
- userId (사용자아이디) — 외래 키 → Product.userId — NOT NULL
- categoryName (카테고리이름)
- Field2
- Field3
HostUser (CEO)
- userId (사용자아이디) — 기본 키 — NOT NULL
- userName (사용자이름)
- userPassword (사용자비밀번호)
- userEmail (사용자이메일)
- userPhoneNumber (사용자휴대번호)
Like (별점)
- scoreId (별점아이디) — 기본 키 — NOT NULL
- storeId (상점아이디) — 외래 키 → Product.storeId — NOT NULL
- userId (사용자아이디) — 외래 키 → Product.userId — NOT NULL
- scoreAvg (별점평점)
Product (상점)
- storeId (상점아이디) — 기본 키 — NOT NULL
- userId (사용자아이디) — 외래 키 → User.userId — NOT NULL
- storeName (상점이름)
- storePhoneNumber (상점전화번호)
- storeAddress (상점주소)
- storeImage (상점이미지)
- scoreID (별점아이디)
- reviewId (리뷰아이디)
Review (리뷰)
- reviewId (리뷰아이디) — 기본 키 — NOT NULL
- storeId (상점아이디) — 외래 키 → Product.storeId — NOT NULL
- userId (사용자아이디) — 외래 키 → Product.userId — NOT NULL
- Field
User (사용자)
- userId (사용자아이디) — 기본 키 — NOT NULL
- userName (사용자이름)
- userPassword (사용자비밀번호)
- userEmail (사용자이메일)
- userPhoneNumber (사용자휴대번호)
admin (adminUser)
- userId (사용자아이디) — 기본 키 — NOT NULL
- userName (사용자이름)
- userPassword (사용자비밀번호)
- userEmail (사용자이메일)
- userPhoneNumber (사용자휴대번호)