RLab

ㅈㅎ

Tables (27)

cabinet (캐비넷)

  • 캐비넷아이디 (id)
  • 카페번호 (id2) — auto increment — Foreign key → cafe.카페번호 — NOT NULL
  • 캐비넷번호 (cabinet_number)
  • 이용가능여부 (available)
  • 빌리는기간 (rental_period)

cafe (카페)

  • 카페번호 (id) — auto increment — Primary key — NOT NULL
  • 카페이름 (name)
  • 카페위치 (location)

certifyingshot (인증샷)

  • 인증샷번호 (board_id) — not null auto_increment — Primary key — NOT NULL
  • 내용 (content) — NOT NULL
  • 이미지경로 (image_path) — NOT NULL
  • 좋아요수 (like_count) — DEFAULT 0
  • 작성시간 (created_at) — NOT NULL

comment (댓글)

  • 댓글번호 (co_num) — not null auto_increment — Primary key — NOT NULL
  • 내용 (co_content) — not null
  • 작성일 (co_register_date) — CURRENT_TIMESTAMP
  • 아이디 (id) — Foreign key → user.아이디
  • 게시판 번호 (id2) — not null auto_increment — Foreign key → free_board.게시판 번호 — NOT NULL

email_authentication (이메일 인증)

  • 아이디 (id) — Foreign key → user.아이디
  • 코드 (code) — NOT NULL
  • 인증 (authentication) — NOT NULL DEFAULT 'N'

event_calendar (스터디 캘랜더)

  • 아이디 (id) — NOT NULL AUTO_INCREMENT — Primary key — NOT NULL
  • 제목 (title) — NOT NULL
  • 시작일 (start)
  • 종료일 (end) — NOT NULL

file (첨부파일)

  • 파일번호 (fi_num) — not null auto_increment — Primary key — NOT NULL
  • 오리지널이름 (fi_ori_name) — NOT NULL
  • 파일이름 (fi_name) — not null
  • 게시판 번호 (id) — not null — Foreign key → free_board.게시판 번호 — NOT NULL

free_board (자유게시판)

  • 게시판 번호 (id) — not null auto_increment — Primary key — NOT NULL
  • 제목 (title) — not null
  • 내용 (content) — not null
  • 글쓴이 (author) — not null
  • 작성일 (created_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP
  • 조회수 (views) — not null default 0
  • 스크랩 (int) — not null default 0

like (좋아요)

  • 번호 (li_num) — not null auto_increment — Primary key — NOT NULL
  • 상태 (li_state) — not null
  • 아이디 (id) — Foreign key → user.아이디
  • 게시판 번호 (id2) — Foreign key → free_board.게시판 번호 — NOT NULL

membership (이용권구매정보)

  • 아이디 (Key) — Primary key — NOT NULL
  • 타입 (type)
  • 시작일 (start_date)
  • 종료일 (end_date)
  • 유저아이디 (id) — Foreign key → user.아이디

mission (미션)

  • 미션번호 (mi_id) — not null auto_increment — Primary key — NOT NULL
  • 아이디 (id) — Foreign key → user.아이디
  • 제목 (title) — NOT NULL
  • 성공여부 (is_active) — DEFAULT FALSE
  • 생성일 (created_at) — DEFAULT NOW()

notifications (알림)

  • 알림 ID (id) — Primary key — NOT NULL
  • 아이디 (id2) — Foreign key → user.아이디
  • 알림 종류 (type)
  • 알림대상id(예 댓글id 게시물id 등 (target_id)
  • 알림을 읽었는지 여부 (read_flag)
  • 알림이 생성된 시간 (created_at)
  • 알림이 업데이트된 시간 (updated_at)

payment (결제)

  • 아이디 (id) — Primary key — NOT NULL
  • 아이디 (id2) — Foreign key → user.아이디
  • 결제금액 (amount)
  • 결제상태 (status)
  • 결제시간 (created_at:)

pet (펫)

  • 펫번호 (id) — AUTO_INCREMENT — Primary key — NOT NULL
  • 펫이름 (name) — NOT NULL
  • 펫이미지 (image)
  • 펫레벨 (level)
  • 보상정보 (reward_info)
  • 경험치 (experience)

project_room (프로젝트룸)

  • 프로젝트룸아이디 (id) — Primary key — NOT NULL
  • 카페번호 (id2) — auto increment — Foreign key → cafe.카페번호 — NOT NULL
  • 룸 번호 (room_number)
  • 시작일 (start_date)
  • 종료일 (end_date)
  • 시작시간 (start_time)
  • 종료시간 (end_time)

recruitment_board (모집 게시판)

  • 모집게시판번호 (id) — not null auto_increment — Primary key — NOT NULL
  • 아이디 (id2) — Foreign key → user.아이디
  • 제목 (title) — NOT NULL
  • 내용 (content) — NOT NULL
  • 지역 (location) — NOT NULL
  • 현재멤버 (current_members) — NOT NULL
  • 전체멤버 (total_members) — NOT NULL
  • 상태 (status) — NOT NULL DEFAULT '모집중',
  • 생성일 (created_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP,

recruitment_board_comments (모집_댓글)

  • 모집댓글번호 (id) — AUTO_INCREMENT — Primary key — NOT NULL
  • 내용 (content) — NOT NULL
  • 모집게시판번호 (id2) — not null auto_increment — Foreign key → recruitment_board.모집게시판번호 — NOT NULL
  • 아이디 (id22) — Foreign key → recruitment_board.아이디
  • 생성일 (created_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP

recruitment_board_save (찜)

  • 아이디 (id) — NOT NULL AUTO_INCREMENT, — Primary key — NOT NULL
  • 모집게시판번호 (id2) — not null auto_increment — Foreign key → recruitment_board.모집게시판번호 — NOT NULL
  • 아이디 (id22) — Foreign key → recruitment_board.아이디
  • 생성일 (created_at) — DEFAULT CURRENT_TIMESTAMP

recruitment_board_tags (모집태그)

  • 태그번호 (id) — NOT NULL AUTO_INCREMENT — Primary key — NOT NULL
  • 태그이름 (tag_name) — NOT NULL
  • Field
  • 모집게시판번호 (id2) — not null auto_increment — Foreign key → recruitment_board.모집게시판번호 — NOT NULL
  • 아이디 (id22) — Foreign key → recruitment_board.아이디

reservation (예약)

  • 예약아이디 (id) — Primary key — NOT NULL
  • 아이디 (id2) — Foreign key → user.아이디
  • 카페번호 (id3) — auto increment — Foreign key → cafe.카페번호 — NOT NULL
  • 좌석아이디 (idi) — not null auto_increment — Foreign key → seat.좌석아이디 — NOT NULL
  • 프로젝트룸아이디 (id4) — Foreign key → project_room.프로젝트룸아이디 — NOT NULL
  • 시간일 (date)
  • 시작시간 (start_time)
  • 끝나는시간 (end_time)
  • 상태 (status)

seat (좌석)

  • 좌석아이디 (idi) — not null auto_increment — Primary key — NOT NULL
  • 좌석번호 (seat_number)
  • 이용가능여부 (available)
  • 시작일 (start_time)
  • 종료일 (end_time)
  • 카페번호 (id2) — auto increment — Foreign key → cafe.카페번호 — NOT NULL

session (접속자)

  • 세션 아이디 (session_id) — NOT NULL — Primary key — NOT NULL
  • 아이디 (id) — Foreign key → user.아이디

study (스터디)

  • 스터디번호 (id) — auto_increment — Primary key — NOT NULL
  • 스터디명 (name) — NOT NULL
  • 소개글 (description) — NOT NULL
  • 지역 (location) — NOT NULL
  • 태그들 (tags) — NOT NULL
  • 이미지 (image) — NOT NULL
  • 현재인원 (max_members) — default 0
  • 최대인원 (current_members) — NOT NULL default 0
  • Field
  • 아이디 (study_id) — Foreign key → user.아이디
  • 생성일 (created_at) — DEFAULT CURRENT_TIMESTAMP

study_join (참가)

  • 참가번호 (id) — AUTO_INCREMENT — Primary key — NOT NULL
  • 아이디 (id3) — Foreign key → user.아이디
  • 참가여부 (is_attending) — DEFAULT TRUE
  • 생성일 (created_at) — DEFAULT CURRENT_TIMESTAMP
  • 스터디번호 (id2) — auto_increment — Foreign key → study.스터디번호 — NOT NULL

temp_storage (임시저장)

  • 임시저장번호 (id) — NOT NULL AUTO_INCREMENT — Primary key — NOT NULL
  • 아이디 (id2) — Foreign key → user.아이디
  • 임시저장생성일 (created_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP
  • 임시저장내용 (data) — not null

to_do_list (투두리스트)

  • 아이디 (id) — NOT NULL AUTO_INCREMENT — Primary key — NOT NULL
  • 제목 (title) — NOT NULL
  • 완료여부 (completed) — NOT NULL DEFAULT 0
  • 생성일 (created_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP
  • Field

user (유저)

  • 아이디 (id) — Primary key
  • 닉네임 (nickname) — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 휴대폰 번호 (phone_number) — NOT NULL
  • 이메일 (email) — NOT NULL
  • 회원가입날짜 (join_date) — NOW()
  • 탈퇴날짜 (out_date) — NOW()
  • 유저권한 (authority) — default 0
  • 로그인아이디 (username) — NOT NULL
  • 세션정보 (session_id) — NOT NULL
  • 휴대폰인증 (is_phone_verified) — NULL DEFAULT 0