fxb

테이블 (3)

도서 목록 정보 (BookList)

  • id (Key) — Int — 기본 키 — NOT NULL
  • isbn13 (Field) — Char(15)
  • title (Field2) — Text
  • author (Field3) — Text
  • publisher (Field4) — Text
  • add_code (Field5) — Char(10)
  • img_url (Field6) — Text
  • kdc_class_no (Field7) — Char(20)
  • title_replace (Field8) — Text
  • author_replace (Field9) — Text
  • barcode (Field10) — Char(50)

사용자 정보 (User)

  • id (Key) — Email — 기본 키 — NOT NULL
  • name (Field) — Char(50)
  • gender (Field2) — Boolean
  • age (Field3) — SmallInt
  • phone (Field4) — Char(13)
  • password (Field5) — Char(12)

책 대여 내역 정보 (Rent)

  • id (Key) — Int — 기본 키 — NOT NULL
  • user_id (Key2) — Email — 외래 키 → 사용자 정보.id — NOT NULL
  • book_id (Key3) — Int — 외래 키 → 도서 목록 정보.id — NOT NULL
  • rent_date (Field) — Date(auto_now_add)
  • return_date (Field2) — Date(rent_date.date() + datetime.timedelta(days=10)
  • returned (Field3) — Date