librarysystem

Tables (4)

books (Untitled2)

  • id — Primary key — NOT NULL
  • 제목 (title)
  • 글쓴이 (author)
  • 가격 (price)
  • 출판사 (publisher)
  • 출판일 (publishedAt)
  • 상태 (status)

loan (Untitled3)

  • 대출 id (id) — Primary key — NOT NULL
  • 유저 id (userid) — Foreign key → users.유저 id — NOT NULL
  • 도서 id (bookid) — Foreign key → books.id — NOT NULL
  • 대출일 (loandate)
  • 반납예정일 (duedate)
  • 반납일 (returndate)
  • 상태 (status)

refresh_tokens (Untitled4)

  • 토큰 id (id) — Primary key — NOT NULL
  • 토큰 (refreshToken)
  • 유저 id (userid) — Foreign key → users.유저 id — NOT NULL

users (Untitled)

  • 유저 id (id) — Primary key — NOT NULL
  • 이름 (username)
  • 비밀번호 (password)
  • 연락처 (contact)
  • 메모 (memo)
  • 권한 (userType)