RabbitMQ

테이블 (4)

거래 (Interaction)

  • 거래 ID (interaction_id) — int — 기본 키 — NOT NULL — int auto_increment
  • 출금 계좌번호 (acc_out_num) — int
  • 입금 계좌번호 (acc_in_num) — int
  • 금액 (money) — int
  • 시각 (datetime) — datetime — format eample = 2023-01-01 12:00

계좌 (Account)

  • 계좌 ID (account_id) — int — 기본 키 — NOT NULL — int auto_increment
  • 사용자 ID (user_id) — int — 외래 키 → 유저.사용자 ID — NOT NULL — int auto_increment
  • 계좌번호 (account_num) — int
  • 잔고 (money) — double

유저 (User)

  • 사용자 ID (user_id) — int — 기본 키 — NOT NULL — int auto_increment

참조 (link)

  • 참조 ID (link_id) — int — 기본 키 — NOT NULL — int auto_increment
  • 계좌 ID (account_id) — int — 외래 키 → 계좌.계좌 ID — NOT NULL — int auto_increment
  • 사용자 ID (user_id) — int — 외래 키 → 계좌.사용자 ID — NOT NULL — int auto_increment
  • 거래 ID (interaction_id) — int — 외래 키 → 거래.거래 ID — NOT NULL — int auto_increment