계좌
테이블 (4)
거래(입출금) (Transaction)
- 거래 기본키 (id) — 기본 키 — NOT NULL
- 거래가 발생한 계좌(N:1 연결) (account)
- 거래의 종류 (사용, 사용취소) (transaction_type)
- 거래 결과 (성공, 실패) (transaction_result_type)
- 거래 금액 (amount)
- 거래 후 계좌 잔액 (balanceSnapshot)
- 거래 일자 (transacted_At)
- 거래 생성 일자 (created_At)
- 거래 수정 일자 (updated_At)
- 계좌 식별 아이디 (user_id) — 외래 키 → 계좌.계좌 기본키 — NOT NULL
- 거래 식별 아이디 (transaction_Id)
계좌 (Account)
- 계좌 기본키 (id) — 기본 키 — NOT NULL
- 계좌 번호 (account_number)
- 계좌 상태 (account_status)
- 계좌 잔액 (balance)
- 계좌 등록 일자 (registered_At)
- 계좌 해지 일자 (unregisted_At)
- 계좌 생성 일자 (created_At)
- 계좌 수정 일자 (updated_At)
- 사용자 식별 아이디 (user_id) — 외래 키 → 회원.사용자 기본키 — NOT NULL
송금 (transfer_transaction)
- 송금 기본키 (id) — 기본 키 — NOT NULL
- 송금 계좌 아이디 (sender_account_id)
- 받는 계좌 아이디 (receiver_account_id)
- 송금 금액 (amount)
- 송금 일자 (transfer_transacted_At)
- 송금 생성 일자 (created_At)
- 송금 수정 일자 (updated_At)
- 송금 식별 아이디 (transfer_transaction_id) — 외래 키 → 거래(입출금).거래 기본키 — NOT NULL
회원 (User)
- 사용자 기본키 (id) — 기본 키 — NOT NULL
- 아이디 (user_id)
- 비밀번호 (password)
- 이름 (name)
- 이메일 (email)
- 사용자 권한 (role)
- 사용자 생성 일자 (created_At)
- 사용자 수정 일자 (updated_At)