8percent

Tables (3)

Account (accounts)

  • 아이디 (id) — INT — Primary key — NOT NULL
  • 계좌번호 (account_number) — INT — Primary key — NOT NULL
  • 고객아이디 (customer_id) — INT — Foreign key → Customer.아이디 — NOT NULL
  • 고객이름 (name) — string
  • 잔액 (balance) — float

Customer (customers)

  • 아이디 (id) — INT — Primary key — NOT NULL
  • 이메일 (email) — string
  • 비밀번호 (pasword) — string
  • 이름 (name) — string

Transaction (transactions)

  • 아이디 (id) — uuid — Primary key — NOT NULL
  • 계좌번호 (account_number) — string — Foreign key → Account.계좌번호 — NOT NULL
  • 고객아이디 (customer_id) — string — Foreign key → Account.고객아이디 — NOT NULL
  • 이체 금액 (amount) — float
  • 해당 거래 이후 계좌에 남는 잔액 (remaining_balance) — float
  • 적요(받는 사람 이름) (description) — string
  • 이체 날짜 (transfer_date) — datetime
  • 입금 혹은 출금 (transaction_type) — tinyint