교통안전 알리미

테이블 (15)

CCTV 영상정보(UTIC의 CCTV 영상정보 개방데이터) (cctv_video)

  • cctv_id — int — 기본 키 — NOT NULL — PK, auto increase
  • cctv_Xcoordinate — double — NOT NULL — CCTV의 X좌표
  • cctv_Ycoordinate — double — NOT NULL — CCTV의 Y좌표
  • cctv_road_name — varchar(255) — NOT NULL — CCTV 설치 구간명
  • cctv_video_src — varchar(255) — NOT NULL — CCTV 영상정보 링크

UTIC의 공공데이터 중 돌발사고 저장 테이블(실시간 돌발사고의 PUSH 알람 후 데이터를 저장하여 지도에 오버레이) (unexpected_accident)

  • incidentId — varchar(255) — 기본 키 — NOT NULL — 돌발사고 xml 데이터 중 고유아이디
  • incidentTypeCd — varchar(255) — NOT NULL — 돌발사고 xml 데이터 중 돌발유형 ex) 1 -> 사고, 2 -> 공사 등
  • addressJibun — varchar(255) — NOT NULL — 돌발사고 xml 데이터 중 주소(지번)
  • addressNew — varchar(255) — NOT NULL — 돌발사고 xml 데이터 중 도로명주소
  • locationDataX — double — NOT NULL — 돌발사고 xml 데이터 중 x좌표
  • locationDataY — double — NOT NULL — 돌발사고 xml 데이터 중 y좌표
  • incidentTitle — varchar(255) — NOT NULL — 돌발사고 xml 데이터 중 돌발제목 ex) [사고] 철망산길 진성고사거리에서 ....
  • startDate — varchar(255) — NOT NULL — 돌발사고 xml 데이터 중 발생일
  • endDate — varchar(255) — NOT NULL — 돌발사고 xml 데이터 중 종료일
  • lane — varchar(32) — NOT NULL — 돌발사고 xml 데이터 중 차선
  • create_at — datetime — NOT NULL — 생성일

게시글 답글 (post_reply)

  • post_reply_id — int — 기본 키 — NOT NULL — PK, auto increase
  • post_reply_text — varchar(1024) — NOT NULL — 답글 내용
  • post_reply_good — int — NOT NULL — 답글 공감 수
  • create_at — datetime — NOT NULL — 작성일
  • update_at — datetime — NOT NULL — 수정일
  • delete_at — datetime — NOT NULL — 삭제일
  • post_comment_id — int — 외래 키 → 게시글 댓글.post_comment_id — NOT NULL — FK, 게시글 댓글 id
  • user_id — int — 외래 키 → 유저.user_id — NOT NULL — FK, 유저 id

게시글 댓글 (post_comments)

  • post_comment_id — int — 기본 키 — NOT NULL — PK, auto increase
  • post_comment_text — varchar(1024) — NOT NULL — 댓글 내용
  • post_comment_good — int — NOT NULL — 댓글 공감 수
  • create_at — datetime — NOT NULL — 작성일
  • update_at — datetime — NOT NULL — 수정일
  • delete_at — datetime — NOT NULL — 삭제일
  • community_post_id — int — 외래 키 → 커뮤니티 게시글.community_post_id — NOT NULL — FK, 커뮤니티 게시글 id
  • user_id — int — 외래 키 → 유저.user_id — NOT NULL — FK, 유저 id

답변 동영상 (reply_video)

  • reply_id — int — 외래 키 → 답변(답변 삭제 불가, 삭제 요청은 가능).reply_id — NOT NULL — PK, FK, 답변 id
  • reply_video_src — varchar(2048) — NOT NULL — 답변 내용 중 동영상 경로

답변 이미지 (reply_img)

  • reply_id — int — 외래 키 → 답변(답변 삭제 불가, 삭제 요청은 가능).reply_id — NOT NULL — PK, FK, 답변 id
  • reply_img_src — varchar(2048) — NOT NULL — 답변 내용 중 이미지 경로

답변(답변 삭제 불가, 삭제 요청은 가능) (reply)

  • reply_id — int — 기본 키 — NOT NULL — PK, auto increase
  • reply_text — text — NOT NULL — 답변 내용
  • reply_good — int — NOT NULL — 답변 공감 수
  • create_at — datetime — NOT NULL — 작성일
  • update_at — datetime — NOT NULL — 수정일
  • question_id — int — 외래 키 → 질문(답변 달리면 삭제 안 됨).question_id — NOT NULL — FK, 질문 id
  • user_id — int — 외래 키 → 유저.user_id — NOT NULL — FK, 유저 id

리콜 차량 정보(메인 ui에 띄어 알리기 위한 데이터) (recall_cars)

  • recall_cars_id — int — 기본 키 — NOT NULL — PK, auto increase
  • recall_cars_name — varchar(64) — NOT NULL — 리콜 대상 차량 모델명
  • recall_cars_year — varchar(16) — NOT NULL — 리콜 대상 차량 연식
  • recall_cars_type — varchar(16) — NOT NULL — 리콜 대상 차량 연료 종류 ex)디젤, 가솔린
  • recall_cars_engine_type — varchar(255) — NOT NULL — 리콜 대상 차량 엔진 모델 ex)R엔진, 카파엔진, 세타엔진, 람다엔진 등
  • recall_cars_start_date — varchar(255) — NOT NULL — 리콜 대상 차량의 리콜 시작일 ex)2021년 11월 10일
  • start_notification_date — datetime — NOT NULL — 공지시작일
  • end_notification_date — datetime — NOT NULL — 공지종료일

사망교통사고정보서비스 (death_service)

  • death_service_id — int — 기본 키 — NOT NULL — PK, auto increase
  • death_service_occrrnc_dt — varchar(16) — NOT NULL — 공공데이터 JSON의 발생월일시
  • death_service_lo_crd — float — NOT NULL — 공공데이터 JSON의 경도
  • death_service_la_crd — float — NOT NULL — 공공데이터 JSON의 위도
  • create_at — datetime — NOT NULL — 생성일

유저 (users)

  • user_id — int — 기본 키 — NOT NULL — PK, auto increase
  • user_email — varchar(255) — NOT NULL — 유저 id, 이메일 형식
  • user_password — varchar(255) — NOT NULL — 유저 password, 암호화
  • user_activity_point — int — NOT NULL — 유저 활동점수
  • user_profile_img_src — varchar(2048) — NOT NULL — 유저 프로필 이미지 경로
  • user_profile_intro — varchar(255) — NOT NULL — 유저 프로필 소개

정보 서비스 체크 여부 (info_service_check)

  • user_id — int — 외래 키 → 유저.user_id — NOT NULL — PK, auto increase
  • death_service_check — tinyint — NOT NULL — 체크 여부, 0 : 체크 X 1 : 체크 O

질문 동영상 (question_video)

  • question_id — int — 외래 키 → 질문(답변 달리면 삭제 안 됨).question_id — NOT NULL — PK, FK, 질문 id
  • question_video_src — varchar(2048) — NOT NULL — 질문 내용 중 동영상 경로

질문 이미지 (question_img)

  • question_id — int — 외래 키 → 질문(답변 달리면 삭제 안 됨).question_id — NOT NULL — PK, FK, 질문 id
  • question_img_src — varchar(2048) — NOT NULL — 질문 내용 중 이미지 경로

질문(답변 달리면 삭제 안 됨) (questions)

  • question_id — int — 기본 키 — NOT NULL — PK, auto increase
  • question_title — varchar(255) — NOT NULL — 질문 제목
  • question_text — text — NOT NULL — 질문 내용
  • question_view_count — int — NOT NULL — 질문 조회수
  • create_at — datetime — NOT NULL — 작성일
  • update_at — datetime — NOT NULL — 수정일
  • delete_at — datetime — NOT NULL — 삭제일
  • user_id — int — 외래 키 → 유저.user_id — NOT NULL — PK, auto increase

커뮤니티 게시글 (community_posts)

  • community_post_id — int — 기본 키 — NOT NULL — PK, auto increase
  • community_post_title — varchar(255) — NOT NULL — 게시글 제목
  • community_post_text — text — NOT NULL — 게시글 내용
  • community_post_good — int — NOT NULL — 게시글 공감 수
  • community_post_view_count — int — NOT NULL — 게시글 조회수
  • create_at — datetime — NOT NULL — 작성일
  • update_at — datetime — NOT NULL — 수정일
  • delete_at — datetime — NOT NULL — 삭제일
  • user_id — int — 외래 키 → 유저.user_id — NOT NULL — FK, 유저 id