MACS
Tables (6)
Calender (실행기록)
- 기본키 (id) — int — Primary key — NOT NULL
- 유저 기본키 (user_id) — int — Foreign key → User.유저 기본키 — NOT NULL
- 실행내용 (content) — String
- 실행날짜 (started_at) — LocalDate
- 종료일자 (finished_at) — LocalDate
Chat (채팅 기록)
- 기본키 (id) — int — Primary key — NOT NULL
- 기본키 (chatroom_id) — int — Foreign key → ChatRoom.기본키 — NOT NULL
- 내용 (content) — String
- 생성일자 (created_at) — LocalDate
ChatRoom (채팅방)
- 기본키 (id) — int — Primary key — NOT NULL
- 기본키 (user_id) — int — Foreign key → User.유저 기본키 — NOT NULL
- 방 이름 (name) — String
ChatRoomDevice (채팅방 제품목록)
- 기본키 (id) — int — Primary key — NOT NULL
- 기본키 (chatroom_id) — int — Foreign key → ChatRoom.기본키 — NOT NULL
- 기본키 (device_id) — int — Foreign key → Device.기본키 — NOT NULL
- 작동여부 (device_status) — Boolean
Device (가전제품)
- 기본키 (id) — int — Primary key — NOT NULL
- 제품번호 (product_number) — String
- 생성일자 (created_at) — LocalDate
- 카테고리 (category) — enum
- 추가기능 (extra_function) — String
User (사용자)
- 유저 기본키 (id) — int — Primary key — NOT NULL
- 이름 (name) — String
- 비밀번호 (password) — String
- 생년월일 (birth_date) — LocalDate
- 전화번호 (phone_number) — String