taka
Tables (5)
membership_entity (사용자 - 단체 매핑)
- 멤버십 ID (membership_id) — notnull — Primary key — NOT NULL
- 사용자 ID (user_id) — notnull — Foreign key → user_entity.사용자 ID — NOT NULL
- 단체 ID (org_id) — notnull — Foreign key → org_entity.단체 ID — NOT NULL
- 단체 관리자 여부 (isAdmin) — notnull
- 생성 일시 (created_date) — notnull
- 수정 일시 (modified_date) — notnull
- 가입 상태 (status) — notnull
org_entity (단체)
- 단체 ID (org_id) — notnull — Primary key — NOT NULL
- 단체 이름 (org_name) — notnull
- 단체 소속 (department) — notnull
- 단체 설명 (org_description) — null
- 생성 일시 (created_date) — notnull
- 수정 일시 (modified_date) — notnull
rental_item_entity (대여 물품)
- 대여 물품 ID (rental_item_id) — notnull — Primary key — NOT NULL
- 속한 단체 (org_id) — notnull — Foreign key → org_entity.단체 ID — NOT NULL
- 물품 이름 (item_name) — boolean
- 대여 가능 여부 (is_available) — notnull
- 대여 기간 (rental_period) — notnull
- 물품 사진 (item_image_url) — notnull
- 생성 일시 (created_date) — notnull
- 수정 일시 (modified_date) — notnull
rental_record_entity (대여 기록)
- 대여 기록 ID (rental_record_id) — notnull — Primary key — NOT NULL
- 사용자 ID (user_id) — notnull — Foreign key → user_entity.사용자 ID — NOT NULL
- 대여 물품 ID (rental_item_id) — notnull — Foreign key → rental_item_entity.대여 물품 ID — NOT NULL
- 대여 시작일 (rental_start_date) — notnull
- 반납 예정일 (rental_end_date) — notnull
- 실제 반납일 (return_date) — null
- 반납 여부 (is_returned) — notnull
- 생성 일시 (created_date) — notnull
- 수정 일시 (modified_date) — notnull
user_entity (사용자)
- 사용자 ID (user_id) — notnull — Primary key — NOT NULL
- 사용자 이메일 (email) — notnull
- 비밀번호 (password) — notnull
- 이름 (name) — notnull
- 전공 (major) — notnull
- 학번 (student_num) — notnull
- 전화번호 (phone_number) — notnull
- 프로필사진 (profile_image_url) — null
- 권한 (role) — notnull
- 생성 일시 (created_date) — notnull
- 수정 일시 (modified_date) — notnull