rgt-assignment
Tables (8)
menu
- PK (id) — BIGINT — Primary key — NOT NULL
- PK (store_id) — BIGINT — Foreign key → store.PK — NOT NULL
- 메뉴명 (name) — VARCHAR
- 가격 (price) — INT
- 설명 (description) — VARCHAR
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP
order_item
- PK (id) — BIGINT — Primary key — NOT NULL
- 메뉴 PK (menu_id) — BIGINT — Foreign key → menu.PK — NOT NULL
- 주문 PK (orders_id) — BIGINT — Foreign key → orders.PK — NOT NULL
- 가격 (price) — INT
- 수량 (quantity) — INT
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP
orders
- PK (id) — BIGINT — Primary key — NOT NULL
- PK (tables_id) — BIGINT — Foreign key → tables.PK — NOT NULL
- 총액 (total_price) — INT
- 주문 상태 (status) — VARCHAR
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP
refresh_token
- PK (id) — BIGINT — Primary key — NOT NULL
- 유저 아이디 (username) — VARCHAR
- 토큰 (token) — VARCHAR
- 만료 일자 (expiration) — TIMESTAMP
store
- PK (id) — BIGINT — Primary key — NOT NULL
- 유저 PK (owner_id) — BIGINT — Foreign key → user.PK — NOT NULL
- 가게명 (name) — VARCHAR
- 가게 주소 (address) — VARCHAR
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP
table_item
- PK (id) — BIGINT — Primary key — NOT NULL
- 메뉴 PK (menu_id) — BIGINT — Foreign key → menu.PK — NOT NULL
- 테이블 PK (tables_id) — BIGINT — Foreign key → tables.가게 PK — NOT NULL
- 수량 (quantity) — INT
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP
tables
- PK (id) — BIGINT — Primary key — NOT NULL
- 가게 PK (store_id) — BIGINT — Foreign key → store.PK — NOT NULL
- 테이블 번호 (number) — INT
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP
user
- PK (id) — BIGINT — Primary key — NOT NULL
- 유저 아이디 (username) — VARCHAR — unique
- 비밀번호 (password) — VARCHAR
- 권한 (role) — VARCHAR
- 생성 일자 (created_at) — TIMESTAMP
- 수정 일자 (updated_at) — TIMESTAMP