심란은행

테이블 (7)

고정지출 (Fixed)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (content) — string — NOT NULL
  • Field (date) — timestamp — NOT NULL
  • Field (category) — string
  • Key (id2) — long — 외래 키 → 유저 테이블.Key — NOT NULL

생활비 (Living)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (content) — string — NOT NULL
  • Field (date) — timestamp — NOT NULL
  • Key (user_id) — long — 외래 키 → 유저 테이블.Key — NOT NULL

알바생 (Assistant)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (name) — string — NOT NULL
  • Field (account) — string — NOT NULL
  • Key (user_id) — long — 외래 키 → 유저 테이블.Key — NOT NULL

여유비 (Surplus)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (content) — string — NOT NULL
  • Field — timestamp — NOT NULL
  • Key (user_id) — long — 외래 키 → 유저 테이블.Key — NOT NULL

월간 정산 (MonthlyProfit)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (date) — timestamp — NOT NULL
  • Field (income) — int — NOT NULL — 수익
  • Field (expenses) — int — NOT NULL — 지출
  • Field (net_profit) — int — NOT NULL — 순이익
  • Key (user_id) — long — 외래 키 → 유저 테이블.Key — NOT NULL

유동지출 (Variable)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (content) — string — NOT NULL
  • Field (date) — timestamp — NOT NULL
  • Field (category) — string
  • Key (user_id) — long — 외래 키 → 유저 테이블.Key — NOT NULL

유저 테이블 (User)

  • Key (id) — long — 기본 키 — NOT NULL
  • Field (name) — string — NOT NULL
  • Field (username) — string — NOT NULL
  • Field (password) — string — NOT NULL
  • Field (category) — string — 업종