UMC 과제 1
테이블 (12)
Location (Untitled6)
- LocationId (Key) — Int — 기본 키 — NOT NULL
- name (Field) — String
- createdAt (Field2) — datetime(6)
- updatedAt (Field3) — datedtime(6)
Mission (Untitled4)
- MissionId (Key) — Int — 기본 키 — NOT NULL
- StoreId (Key2) — bright — 외래 키 → Store.StoreId — NOT NULL
- content (Field3) — String
- deadline (Field7) — datedtime
- point (Field4) — Int
- createAt (Field5) — datetime(6)
- updatedAt (Field6) — datetime(6)
Point (Untitled8)
- Key — Int — 기본 키 — NOT NULL
- UserId (Key2) — Int — 외래 키 → Users.UserId — NOT NULL
- Date (Field) — String
- 내용 (Field2) — String
- 포인트 (Field3) — Int
- User-MissionId (Key3) — Int — 외래 키 → User-Mission.User-MissionId — NOT NULL
- MissionId (Key32) — Int — 외래 키 → User-Mission.MissionId — NOT NULL
Review (Untitled7)
- ReviewId (Key) — Int — 기본 키 — NOT NULL
- 별점 (Field2) — Int
- 내용 (Field) — String
- 사진 (Field3) — Img
- User-MissionId (Key2) — Int — 외래 키 → User-Mission.User-MissionId — NOT NULL
- MissionId (Key3) — Int — 외래 키 → User-Mission.MissionId — NOT NULL
- UserId (Key4) — Int — 외래 키 → Users.UserId — NOT NULL
Store (Untitled12)
- StoreId (Key) — bright — 기본 키 — NOT NULL
- name (Field) — varchar(50)
- score (Field2) — float
- address (Field3) — varchar(50)
- createdAt (Field4) — datetime(50)
- updatedAt (Field5) — datedtime(50)
- LocationId (Key2) — Int — 외래 키 → Location.LocationId — NOT NULL
User - 알림 및 서비스 이용동의 (Untitled2)
- ID (Key) — INT — 기본 키 — NOT NULL
- UserId (Key2) — Int — 외래 키 → Users.UserId — NOT NULL
- Location (Field) — Boolean
- Marketing (Field2) — Boolean
- 리뷰 답변 (Field3) — Boolean
- 문의 내역 답변 (Field4) — Boolean
User-Mission (Untitled5)
- User-MissionId (Key) — Int — 기본 키 — NOT NULL
- UserId (Key2) — Int — 외래 키 → Users.UserId — NOT NULL
- MissionId (Key3) — Int — 외래 키 → Mission.MissionId — NOT NULL
- status (Field) — INT
- LocationId (Key4) — Int — 외래 키 → Location.LocationId — NOT NULL
User-문의 (Untitled10)
- Id (Key) — Int — 기본 키 — NOT NULL
- UserId (Key3) — Int — 외래 키 → Users.UserId — NOT NULL
- 문의 ID (Key2) — Int — 외래 키 → 문의.문의 ID — NOT NULL
- 답변 여부 (Field) — Int
- 날짜 (Field2) — Date
Users (Untitled)
- UserId (Key) — Int — 기본 키 — NOT NULL
- Sex (Field) — INT
- Birth (Field2) — String
- Address (Field3) — String
- Point (Field5) — Int
- Email (Field6) — String
- Phone (Field7) — String
- name (Field4) — String
문의 (Untitled9)
- 문의 ID (Key) — Int — 기본 키 — NOT NULL
- 제목 (Field) — String
- 유형 (Field4) — String
- 내용 (Field2) — String
- 사진 (Field3) — Img
알림 (Untitled11)
- ID (Key) — INT — 기본 키 — NOT NULL
- UserId (Key4) — Int — 외래 키 → Users.UserId — NOT NULL
- 날짜 (Field) — Date
- 종류 (Field2) — Int
- 제목 (Field3) — String
- 내용 (Field4) — String
- User-MissionId (Key2) — Int — 외래 키 → User-Mission.User-MissionId — NOT NULL
- MissionId (Key3) — Int — 외래 키 → User-Mission.MissionId — NOT NULL
음식 종류 (Untitled3)
- Id (Key) — Int — 기본 키 — NOT NULL
- Food (Field) — INT
- UserId (Key2) — Int — 외래 키 → Users.UserId — NOT NULL