Lotto
Tables (3)
Lotto (lotto)
- 로또 아이디 (id) — NOT NULL — Primary key — NOT NULL
- 유저 아이디 (user_id) — NOT NULL — Foreign key → User.유저 아이디 — NOT NULL
- 라운드 (round) — NOT NULL
- 생성일 (created_date) — NOT NULL
- 로또 번호 (numbers) — NULL
User (users)
- 유저 아이디 (id) — NOT NULL — Primary key — NOT NULL
- 소지 금액 (money) — NOT NULL
- 유저 이름 (user_name) — NOT NULL — NOT NULL
- 유저 역할 (user_role) — NOT NULL
WinningLotto (winning_lotto)
- 당첨 로또 아이디 (id) — NOT NULL — Primary key — NOT NULL
- 로또 아이디 (lotto_id) — NOT NULL — Foreign key → Lotto.로또 아이디 — NOT NULL
- 라운드 (round) — NOT NULL