フィールド名 | データ型 | 制約 | 主キー | 外部キー | 説明文 |
---|---|---|---|---|---|
id | serial | ○ | - | 貸し出しID | |
book_id__book_list_id | integer | not null | - | book_list.id | 書籍名 |
status | text | - | - | 状態 | |
user_name__user_list_id | integer | - | user_list.id | 貸出先ユーザー | |
manage__manage_member_username | text | not null | - | - | 受付 |
lend_date | timestamp | not null default current_timestamp | - | - | 貸出日時 |
yotei_date | date | not null default current_date + interval '14 day' | - | - | 返却予定日 |
back_date | timestamp | - | - | 返却日時 |