DGSW-Washer
Tables (5)
AgreementBLE (세탁기 문 개방 동의 BLE (앱))
- 아이디 (id) — PK / AI — Foreign key → Assignment.아이디 — NOT NULL
- BLE 주소 (mac_address) — UQ
AgreementCode (세탁기 문 개방 동의 코드 (웹))
- 아이디 (id) — PK / AI — Foreign key → Assignment.아이디 — NOT NULL
- OTP 생성 시드 (seed)
Assignment (배치)
- 아이디 (id) — PK / AI — Primary key — NOT NULL
- 세탁기 아이디 (washer_id) — Foreign key → Washer.아이디 — NOT NULL
- 사용자 아이디 (user_id) — Foreign key → User.아이디 — NOT NULL
- 시간대 (assigned_at)
- 세탁물 양 (quantity)
- 배치 여부 (granted)
User (사용자)
- 아이디 (id) — PK / AI — Primary key — NOT NULL
- 사용자 이름 (name)
- 바인드 액세스 토큰 (access_token)
- 바인드 리프레시 토큰 (refresh_token)
Washer (세탁기)
- 아이디 (id) — PK / AI — Primary key — NOT NULL
- 세탁기 명칭 (location)