ssafyFin

Tables (4)

OVERDUE_POLICIES (대여 정책)

  • 대여정책 아이디 (overdue_policiesId) — BIGINT — Primary key — NOT NULL
  • 대여id (rentalId) — BIGINT — Foreign key → rentals.대여id — NOT NULL
  • 생성 시간 (created_at) — timestamp
  • 일일 연체료 (price_per_day) — BIGINT
  • 반납 일자 (due_date)

QR_TOKENS (QR토큰)

    item (물품 =게시글)

    • 물품id (itemId) — BIGINT — Primary key — NOT NULL
    • 물품명 (name) — VARCHAR
    • 내용 (content) — TEXT
    • 대여료 (price) — BIGINT
    • 유저id (userId) — BIGINT
    • 파손보상액 (damage_comp_amount) — BIGINT
    • 대여 상태 (status) — ENUM{rental, possible}
    • 물품 사진 키 (photokey) — VARCHAR
    • Field

    rentals (대여)

    • 대여id (rentalId) — BIGINT — Primary key — NOT NULL
    • 물품id (itemId) — BIGINT — Foreign key → item.물품id — NOT NULL
    • 대여자id (renter_id) — BIGINT
    • Field2