술렁술렁
테이블 (17)
Untitled (userAlcoholCategory)
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- 아이디 (alcoholCategoryId) — int — 외래 키 → 술 카테고리.아이디 — NOT NULL
Untitled (chatParticipant)
- Key (id) — int — 기본 키 — NOT NULL
- 아이디 (chatRoomId) — int — 외래 키 → 채팅방.아이디 — NOT NULL
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Field (createdAt) — datetime — NOT NULL
- Field (deletedAt) — datetime
Untitled (token)
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Field (refreshToken) — varchar(100) — NOT NULL
- Field (expiresAt) — datetime — NOT NULL
Untitled (profile)
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Field (nickname) — varchar(10) — NOT NULL
- Field2 (imageUrl) — varchar(255)
- Field (createdAt) — datetime — NOT NULL
Untitled (provider)
- Key (id) — int — 기본 키 — NOT NULL
- Field (name) — varchar(10) — NOT NULL
- Field2 (createdAt) — datetime — NOT NULL
Untitled (chatRoomTheme)
- Key (id) — int — 기본 키 — NOT NULL
- Field (imageUrl) — varchar(255) — NOT NULL
Untitled (chatLog)
- Key (id) — int — 기본 키 — NOT NULL
- 아이디 (chatRoomId) — int — 외래 키 → 채팅방.아이디 — NOT NULL
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Field (content) — var har(500) — NOT NULL
- Field (loggedAt) — datetime — NOT NULL
Untitled (userInterestAlcohol)
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Key (alcoholId) — int — 외래 키 → Untitled3.Key — NOT NULL
Untitled (userMoodCategory)
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- 아이디 (moodCategoryId) — int — 외래 키 → 분위기 카테고리.아이디 — NOT NULL
Untitled (chatRoomMoodCategory)
- 아이디 (chatRoomId) — int — 외래 키 → 채팅방.아이디 — NOT NULL
- 아이디 (moodCategoryId) — int — 외래 키 → 분위기 카테고리.아이디 — NOT NULL
Untitled (userReviewAlcohol)
- Key (id) — int — 기본 키 — NOT NULL
- 아이디 (userId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Key (alcoholId) — int — 외래 키 → Untitled3.Key — NOT NULL
- Field (score) — int — NOT NULL
- Field2 (comment) — varchar(30) — NOT NULL
- Field (createdAt) — datetime — NOT NULL
Untitled (chatRoomAlcoholCategory)
- 아이디 (chatRoomId) — int — 외래 키 → 채팅방.아이디 — NOT NULL
- 아이디 (alcoholCategoryId) — int — 외래 키 → 술 카테고리.아이디 — NOT NULL
Untitled3 (alcohol)
- Key (id) — int — 기본 키 — NOT NULL
- 아이디 (alcoholCategoryId) — int — 외래 키 → 술 카테고리.아이디 — NOT NULL
- Field (name) — varchar(20) — NOT NULL
- Field (description) — varchar(50)
- Field2 (price) — int
- Field (origin) — varchar(20)
- Field (ratingAverage) — float — NOT NULL
- Field (reviewCount) — int — NOT NULL
- Field (interestCount) — int — NOT NULL
- Field (imageUrl) — varchar(255)
- Field (abv) — float — NOT NULL
- Field (volume) — int — NOT NULL
- Field (createdAt) — datetime — NOT NULL
분위기 카테고리 (moodCategory)
- 아이디 (id) — int — 기본 키 — NOT NULL
- 이름 (name) — varchar(10) — NOT NULL
- 생성날짜 (createdAt) — datetime — NOT NULL
사용자 (user)
- 아이디 (id) — int — 기본 키 — NOT NULL
- Key (providerId) — int — 외래 키 → Untitled.Key — NOT NULL
- Field (email) — varchar(30) — NOT NULL
- Field2 (hashPassword) — varchar(50) — NOT NULL
- Field (createdAt) — datetime — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
- Field (deletedAt) — datetime
술 카테고리 (alcoholCategory)
- 아이디 (id) — int — 기본 키 — NOT NULL
- 이름 (name) — varchar(10) — NOT NULL
- 생성날짜 (createdAt) — datetime — NOT NULL
채팅방 (chatRoom)
- 아이디 (id) — int — 기본 키 — NOT NULL
- 아이디 (ownerId) — int — 외래 키 → 사용자.아이디 — NOT NULL
- Key (themeId) — int — 외래 키 → Untitled.Key — NOT NULL
- 이름 (name) — varchar(50) — NOT NULL
- 설명 (description) — varchar(200)
- 최대 인원 (maxParticipant) — int — NOT NULL
- 생성날짜 (createdAt) — datetime — NOT NULL
- Field (deletedAt) — datetime