データベース - Hobiron03/lend GitHub Wiki

user

  • id: int
  • icon_image: string
  • name: string
  • password: string
  • point: int
  • friend_list: int[]

book

  • id: int
  • name: string
  • price: int
  • image: string
  • info: string(作品説明)
  • auther: string(作者)
  • url: string

own_book 本の所有権のデータベース

  • id: int
  • user_id: int
  • book_id: int

lend_info

  • id: int
  • borrower_id: int
  • own_book_id: int (Own_bookのデータベースから検索)
  • created_at: time
  • returned_at: time (実際に返却した時間)
  • deadline: time (返却期限)
  • is_valid: boolean

Notification 通知機能のデータベース

  • id :int =>識別用
  • user_id: int => ユーザの情報を選択するため
  • message: String
  • created_at : time => 予備ですよ〜