study_with_me

Tables (10)

account (CopyOfUntitled)

  • id (Key) — varchar(255) — Primary key — NOT NULL — 카카오 API에서 받아온 고유값 사용
  • email (Field4) — varchar(255) — NOT NULL — 카카오 API에서 받아온 이메일 값,unique
  • avatar_id (Key2) — long — Foreign key → avatar.id — NOT NULL — avatar table 외래키
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

avatar (CopyOfUntitled2)

  • id (Key) — long — Primary key — NOT NULL — auto_increment
  • nickname (Field4) — varchar(255) — NOT NULL — 닉네임,unique
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

board (CopyOfUntitled4)

  • id (Key) — long — Primary key — NOT NULL — pk,auto increment
  • name (Field4) — varchar — NOT NULL — 카테고리 이름
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

comment (CopyOfUntitled6)

  • id (Key) — long — Primary key — NOT NULL — pk,auto increment
  • avatar_id (Key2) — long — Foreign key → avatar.id — NOT NULL — 작성자 외래키
  • post_id (Key3) — long — Foreign key → post.id — NOT NULL — auto_increment,pk
  • content (Field4) — varchar(255) — NOT NULL — 내용
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

freind_list (CopyOfUntitled3)

  • id (Key2) — long — Primary key — NOT NULL — pk,auto increment
  • my_id (Key) — long — Foreign key → avatar.id — NOT NULL — 친구 추가 요청한 사람의 아이디
  • friend_id (Field4) — long — NOT NULL — 친구 추가 요청 받은 사람의 아이디
  • accept (Field5) — tinyint — NOT NULL — 수락 여부(1활성화,0비활성화)
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

img (CopyOfUntitled8)

  • id (Key) — int — Primary key — NOT NULL — auto_increment,pk
  • img_list_id (Key2) — int — Foreign key → img_list.id — NOT NULL — 이미지 리스트 외래키
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)
  • size (Field4) — int — NOT NULL — 이미지 크기
  • url (Field5) — varchar(255) — NOT NULL — 이미지 저장 위치
  • Field6

img_list (CopyOfUntitled7)

  • id (Key2) — long — Primary key — NOT NULL — auto_increment,pk
  • post_id (Key) — long — Foreign key → post.id — NOT NULL — post 외래키
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

location (CopyOfCopyOfUntitled)

  • id (Key) — long — Primary key — NOT NULL — pk,auto_increment
  • avatar_id (Key2) — long — Foreign key → avatar.id — NOT NULL — avatar table 외래키
  • longtitude (Field4) — double — NOT NULL — 경도
  • lattitude (Field5) — double — NOT NULL — 위도
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)

post (CopyOfUntitled5)

  • id (Key) — long — Primary key — NOT NULL — auto_increment,pk
  • avatar_id (Key2) — long — Foreign key → avatar.id — NOT NULL — 작성자 외래키
  • board_id (Key3) — long — Foreign key → board.id — NOT NULL — 게시판 외래키
  • title (Field4) — varchar(255) — NOT NULL — not null,제목
  • content (Field5) — longtext — NOT NULL — 내용
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)
  • img_list_id (Field6) — int — NOT NULL — 이미지 리스트 테이블 외래키

timer (CopyOfCopyOfCopyOfUntitled)

  • id (Key) — long — Primary key — NOT NULL — pk,auto_increment
  • avatar_id (Key2) — long — Foreign key → avatar.id — NOT NULL — avatar table 외래키
  • start_time (Field4) — datetime — NOT NULL — 공부 시작 시간
  • end_time (Field5) — datetime — 공부 종료 시간
  • study_time (Field6) — time — 공부한 시간
  • created_date (Field) — datetime — NOT NULL — 만들어진 시간
  • modified_date (Field2) — datetime — NOT NULL — 수정 시간
  • active (Field3) — tinyint — NOT NULL — 활성화 여부(1 활성화,0 비활성화)