tennis
Tables (8)
board (자유게시판)
- 게시글 식별자 (board_id) — NOT NULL — Primary key
- 작성자 (memeber_id) — NOT NULL — Foreign key → member.멤버 식별자
- 제목 (title) — NOT NULL
- 내용 (contents) — NOT NULL
- 카테고리 (category) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
comment (댓글)
- 댓글 식별자 (comment_id) — NOT NULL — Primary key
- 게시글 식별자 (board_id) — NOT NULL — Foreign key → board.게시글 식별자
- 게시글 작성자 (memeber_id) — NOT NULL — Foreign key → member.멤버 식별자
- 내용 (contents) — NOT NULL
- 대댓글 (parent_comment_id) — NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
court (코트)
- 코트 식별자 (court_id) — NOT NULL — Primary key
- 사장님 식별자 (owner_id) — NOT NULL — Foreign key → owner.사장님 식별자
- 코트 이름 (name) — NOT NULL
- 코드 주소 (address) — NOT NULL
- 코트 타입 (court_type) — NOT NULL
- 소개글 (content) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
court_image (코트 사진)
- 코트사진식별자 (image_id) — NOT NULL — Primary key
- 코트 식별자 (court_id) — NOT NULL — Foreign key → court.코트 식별자
- 이미지url경로 (image_url) — NOT NULL
- 대표 이미지 여부 (is_thumbnail) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
member (멤버)
- 멤버 식별자 (memeber_id) — NOT NULL — Primary key
- 사용자 이름 (name) — NOT NULL
- 이메일 (email) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 생년월일 (birthdate) — NOT NULL
- 소개글 (content) — NULL
- 테니스 경력 (experienceLevel) — NOT NULL
- 활동지역 (region) — NOT NULL
- 탈퇴여부 (isDeleted) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
owner (테니스장 사장님)
- 사장님 식별자 (owner_id) — NOT NULL — Primary key
- 사장님 이름 (name) — NOT NULL
- 이메일 (email) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 생년월일 (birthdate) — NOT NULL
- 탈퇴여부 (status) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
report (신고)
- 신고 식별자 (report_id) — NOT NULL — Primary key
- 신고한 사람 (reporter_id) — NOT NULL — Foreign key → member.멤버 식별자
- 신고 대상 게시글 (board_id) — NULL — Foreign key → board.게시글 식별자
- 신고 대상 댓글 (comment_id) — NULL — Foreign key → comment.댓글 식별자
- 신고 사유 (reason) — NOT NULL
- 상세 설명 (description) — NOT NULL
- 신고일 (created_at) — NOT NULL
reservation (예약)
- 예약 식별자 (reservation_id) — NOT NULL — Primary key
- 예약한 사용자 (memeber_id) — NOT NULL — Foreign key → member.멤버 식별자
- 예약한 코트 (court_id) — NOT NULL — Foreign key → court.코트 식별자
- 예약 날짜 (reservation_date) — NOT NULL
- 예약 시작 시간 (start_time) — NOT NULL
- 예약 종료 시간 (end_time) — NOT NULL
- 예약 상태 (stastus) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL