Fintech

테이블 (3)

거래 (Transaction)

  • id (transaction_id) — Long — 기본 키 — NOT NULL — Auto Increment
  • 계좌 (account_id) — Long — 외래 키 → 계좌.id — NOT NULL
  • 거래 종류 (transaction_type) — VARCHAR(20) — NOT NULL — 입금, 송금, 출금
  • 거래 금액 (transaction_amount) — Long — NOT NULL — 500만원 이하
  • 입출금자 (deposit_withdraw_name) — VARCHAR(20) — NOT NULL
  • 입출금 계좌 (deposit_withdraw_account) — VARCHAR(20) — NOT NULL
  • 받은사람 이름 (received_name) — VARCHAR(20) — NOT NULL
  • 거래 일자 (transacted_at) — DATETIME — NOT NULL

계좌 (Account)

  • id (account_id) — Long — 기본 키 — NOT NULL — Auto Increment
  • 회원 (account_user_id) — Long — 외래 키 → 회원.id — NOT NULL
  • 은행 (account_bank) — VARCAHR(20) — NOT NULL
  • 계좌 번호 (account_num) — VARCAHR(20) — NOT NULL
  • 계좌 잔액 (account_amount) — Long — NOT NULL
  • 삭제 여부 (account_status) — BOOLEAN — NOT NULL
  • 생성 일자 (account_created_at) — DATETIME — NOT NULL
  • 삭제 일자 (account_deleted_at) — DATETIME — NOT NULL
  • 수정 일자 (account_modified_at) — DATETIME — NOT NULL

회원 (AccountUser)

  • id (account_user_id) — Long — 기본 키 — NOT NULL — Auto Increment
  • 이메일 (email) — VARCHAR(50) — NOT NULL — Unique
  • 비밀번호 (password) — VARCHAR(50) — NOT NULL
  • 이름 (name) — VARCHAR(20) — NOT NULL
  • 전화번호 (phone) — VARCHAR(50) — NOT NULL — Unique
  • 권한 (role) — VARCHAR(50) — NOT NULL
  • 생성 일자 (created_at) — DATETIME — NOT NULL
  • 수정 일자 (updated_at) — DATETIME — NOT NULL