Bankly

Tables (12)

AccessLog (엑세스로그)

  • 아이디 (seq) — Primary key — NOT NULL
  • 사용자아이디 (memberId)
  • 이메일 (email)
  • 쓰레드아이디 (threadId)
  • 권한 (authorization)
  • 운영체제 (os)
  • 사용처 (deviceClass)
  • 에이전트이름 (agentName)
  • 요청아이피 (clientIp)
  • 나라 (country)
  • 도시 (city)
  • 요청시간 (elapsed) — NOT NULL
  • 요청값 (request)
  • 응답값 (response)
  • 장치이름 (deviceName)
  • 운영체제이름 (osName)
  • userAgent
  • 에러아이디 (errorId)
  • 요청 시간 (requestAt) — NOT NULL
  • 응답 시간 (responseAt) — NOT NULL
  • 요청 아이디 (requestId)

AccountStatus (계좌 상태)

  • 만기 (expired) — NOT NULL — NOT NULL
  • 활성 (active) — NOT NULL — NOT NULL

AccountType (계좌 종류)

  • 저축 (saving) — NOT NULL — NOT NULL
  • 당좌 (checking) — NOT NULL — NOT NULL

TransactionType (거래 유형)

  • 입금 (deposit) — NOT NULL — NOT NULL
  • 출금 (withdraw) — NOT NULL — NOT NULL
  • 계좌이체 (transfer) — NOT NULL
  • 결제 (payment) — NOT NULL
  • 이자 지급 (interest_credit) — NOT NULL
  • 수수료 (fee) — NOT NULL
  • 구매 (purchase) — NOT NULL
  • 캐시백 (cash_back) — NOT NULL

account (계좌)

  • 아이디 (account_id) — NOT NULL — Primary key — NOT NULL
  • 계좌번호 (account_number) — NOT NULL — NOT NULL
  • 잔액 (balance) — NOT NULL
  • 출금 한도 (deposit_limit)
  • 생성일자 (create_at) — NOT NULL
  • 수정일자 (update_at) — NOT NULL

bank_fees (은행용 수수료계좌)

  • 아이디 (bank_fees_id) — NOT NULL — Primary key — NOT NULL
  • 계좌 (account_id) — NOT NULL — Foreign key → account.아이디 — NOT NULL
  • 잔액 (balance) — NOT NULL

checking_account (입출금 계좌 소유 정보)

  • 아이디 (bank_account_id) — NOT NULL — Primary key — NOT NULL
  • 계좌 아이디 (account_id) — NOT NULL — Foreign key → account.아이디 — NOT NULL
  • 사용자 아이디 (user_id) — NOT NULL — Foreign key → member.아이디 — NOT NULL

checking_transaction_history (당좌 거래내역)

  • 아이디 (id) — Primary key — NOT NULL
  • 사용자 계좌 아이디 (bank_account_id) — NOT NULL — Foreign key → checking_account.아이디 — NOT NULL
  • 계좌 아이디 (account_id) — NOT NULL — Foreign key → checking_account.계좌 아이디 — NOT NULL
  • 사용자 아이디 (user_id) — NOT NULL — Foreign key → checking_account.사용자 아이디 — NOT NULL
  • 거래시간 (transaction_time) — NOT NULL
  • 거래유형 (transaction_type) — NOT NULL
  • 거래금액 (transactionAmount) — NOT NULL
  • 거래 후 잔액 (balanceAfter) — NOT NULL

member (사용자)

  • 아이디 (user_id) — NOT NULL — Primary key — NOT NULL
  • 이름 (name) — NOT NULL — NOT NULL
  • 이메일(아이디) (email) — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 상태 (status) — NOT NULL
  • 권한 (role) — NOT NULL
  • 마지막로그인시간 (last_login_at) — NOT NULL
  • 생성시간 (create_at) — NOT NULL
  • 수정시간 (update_at) — NOT NULL

saving_account (적금 소유 정보)

  • 적금계좌 아이디 (saving_product_account_id) — NOT NULL — Primary key — NOT NULL
  • 계좌 아이디 (account_id) — NOT NULL — Foreign key → account.아이디 — NOT NULL
  • 사용자 아이디 (user_id) — NOT NULL — Foreign key → member.아이디 — NOT NULL
  • 적금 상품 아이디 (saving_product_id) — NOT NULL — Foreign key → saving_product.아이디 — NOT NULL
  • 매달 입금액 (monthly_deposit) — NOT NULL
  • 시작일 (start_date) — NOT NULL
  • 만기일 (end_date) — NOT NULL

saving_product (적금 상품)

  • 아이디 (saving_product_id) — NOT NULL — Primary key — NOT NULL
  • 상품이름 (name) — NOT NULL
  • 상품설명 (description)
  • 기간 (start_date) — NOT NULL
  • 저축 한도 (saving_limit) — NOT NULL
  • 이자율 (interest_rate) — NOT NULL
  • 적금 기간 (duration_in_month) — NOT NULL

saving_transaction_history (적금 거래내역)

  • 아이디 (id) — Primary key — NOT NULL
  • 적금계좌 아이디 (saving_product_account_id) — NOT NULL — Foreign key → saving_account.적금계좌 아이디 — NOT NULL
  • 계좌 아이디 (account_id) — NOT NULL — Foreign key → saving_account.계좌 아이디 — NOT NULL
  • 사용자 아이디 (user_id) — NOT NULL — Foreign key → saving_account.사용자 아이디 — NOT NULL
  • 적금 상품 아이디 (saving_product_id) — NOT NULL — Foreign key → saving_account.적금 상품 아이디 — NOT NULL
  • 거래시간 (transaction_time) — NOT NULL
  • 거래 유형 (transaction_type) — NOT NULL
  • 거래 금액 (transactionAmount) — NOT NULL
  • 거래 후 잔액 (balanceAfter) — NOT NULL