db1
Tables (6)
DB2025_ADMIN
- admin_id — INT
- user_id — INT — Foreign key → DB2025_USER.user_id — NOT NULL
DB2025_ITEMS
- item_id — INT
- item_name — VARCHAR(20) — NOT NULL
- quantity — INT — NOT NULL
- available_quantity — INT — NOT NULL
- category — VARCHAR(20)
DB2025_OVERDUES
- overdue_id — INT
- user_id — INT — Foreign key → DB2025_USER.user_id — NOT NULL
- item_id — INT — Foreign key → DB2025_ITEMS.item_id — NOT NULL
- original_due — DATE — NOT NULL
- overdue_days — INT — NOT NULL
- restriction_end — DATE — NOT NULL
DB2025_RENT
- rent_id — INT
- item_id — INT — Foreign key → DB2025_ITEMS.item_id — NOT NULL
- user_id — INT — Foreign key → DB2025_USER.user_id — NOT NULL
- borrow_date — DATE — NOT NULL
- due_date — DATE
- return_date — DATE
- rent_status — ENUM — NOT NULL
DB2025_RESERVATION
- reservation_id — INT
- user_id — INT — Foreign key → DB2025_USER.user_id — NOT NULL
- item_id — INT — Foreign key → DB2025_ITEMS.item_id — NOT NULL
- reserve_date — DATE — NOT NULL
- restriction_end — DATE
DB2025_USER
- user_id — INT
- user_pw — VARCHAR(64) — NOT NULL
- user_name — VARCHAR(50) — NOT NULL
- user_dep — VARCHAR(50) — NOT NULL
- user_phone — VARCHAR(20) — NOT NULL
- user_status — ENUM — NOT NULL