account_book
테이블 (3)
가계부 (AccountBook)
- id (아이디) — bigint — 기본 키 — NOT NULL
- user (유저아이디) — bigint — 외래 키 → 사용자.id — NOT NULL
- book_title (가계부이름) — string(64)
- balance (가계부잔액) — bigint
- is_deleted (삭제여부) — boolean
- created_at (생성일) — datetime
- updated_at (수정일) — datetime
가계부 상세내용 (AccountBookRecord)
- id (아이디) — bigint — 기본 키 — NOT NULL
- account_book (가계부아이디) — bigint — 외래 키 → 가계부.user — NOT NULL
- date (작성일) — string(10)
- amount (금액) — mediumint
- memo (내용) — text
- is_deleted (삭제여부) — boolean
- created_at (생성일) — datetime
- updated_at (수정일) — datetime
사용자 (User)
- id (아이디) — bigint — 기본 키 — NOT NULL
- email (이메일) — string(64)
- password (패스워드) — string(256)
- created_at (생성일) — datetime
- updated_at (수정일) — datetime