하나의 완벽한 비서

테이블 (7)

Category

  • Key — id — 기본 키 — NOT NULL
  • name — string

HanassBook

  • Key — int — 기본 키 — NOT NULL
  • userId — int — 외래 키 → Spend.Key — NOT NULL
  • week — datetime
  • subject — string
  • isSelected — boolean
  • count — int

Pension

  • Key — int — 기본 키 — NOT NULL
  • Field
  • userId — int — 외래 키 → User.id — NOT NULL
  • amount — int

Salary

  • Key — int — 기본 키 — NOT NULL
  • userId — int — 외래 키 → User.id — NOT NULL
  • amount — int
  • receivedAt — datetime
  • pensionDeducted — int

Spend

  • Key — id — 기본 키 — NOT NULL
  • userId — int — 외래 키 → User.id — NOT NULL
  • createdAt — datetime
  • amount — int
  • method — enum
  • categoryId — id — 외래 키 → Category.Key — NOT NULL

TaxInsight

  • Key — id — 기본 키 — NOT NULL
  • userId — int — 외래 키 → User.id — NOT NULL
  • taxYear — int
  • cardSpend — int
  • donation — int
  • rentPaid — int
  • expectedRefund — int

User

  • id — int — 기본 키 — NOT NULL
  • name — string
  • email — string
  • createdAt — datetime
  • irpStatus — boolean
  • totalAmount — int