WONshot

Tables (4)

Expense (지출)

  • idx (지출 아이디) — Primary key — NOT NULL
  • monthly_idx (월별데이터 아이디) — Foreign key → Monthly.idx — NOT NULL
  • title (지출제목)
  • price (지출가격)
  • category (지출카테고리)
  • date (지출 날짜) — YYYY-MM-DD
  • status (상태)
  • created_at (생성일)
  • updated_at (수정일)

Income (수입)

  • incomeIdx (수입 아이디) — Primary key — NOT NULL
  • monthly_idx (월별데이터 아이디) — Foreign key → Monthly.idx — NOT NULL
  • title (수입제목)
  • price (수입가격)
  • category (수입카테고리)
  • status (상태)
  • date (수입 날짜) — YYYY-MM-DD
  • createdAt (생성일)
  • updatedAt (수정일)

Monthly (월별데이터)

  • idx (월별데이터 아이디) — Primary key — NOT NULL
  • user_idx (사용자 아이디) — Foreign key → User.idx — NOT NULL
  • date_group (날짜그룹) — NOT NULL — YYYY-MM
  • total_expense (지출합계)
  • total_income (수입합계)
  • status (상태)
  • created_at (생성일)
  • updated_at (수정일)

User (사용자)

  • idx (사용자 아이디) — Primary key — NOT NULL
  • email (이메일) — NOT NULL
  • name (이름) — NOT NULL
  • password (비밀번호) — NOT NULL
  • status (상태)
  • created_at (생성일)
  • updated_at (수정일)