Project1

Tables (7)

CameraLogs (camera_logs)

  • PK (idx) — int — Primary key — NOT NULL
  • 카메라 ID (camera_idx) — Int — Foreign key → Cams.카메라 ID — NOT NULL
  • PK (plog_idx) — int — Foreign key → PlaceLogs.PK — NOT NULL
  • 감지 인원수 (dp_cnt) — int
  • 감지 시간 (detected_time) — datetime

Cams (cams)

  • 카메라 ID (id) — Int — Primary key — NOT NULL
  • 카메라명 (cam_name) — varcahr(255) — Primary key
  • 영상서버 주소 (cam_url) — varchar(256) — NOT NULL
  • 추가된 시간 (created_at) — datetime
  • 수정 시간 (updated_at) — datetime
  • 동작 상태 (is_active) — tinyint(1)
  • 녹화 상태 (is_recording) — tinyint(1)

ModeDetected (mode_detected)

  • PK (idx) — int — Primary key — NOT NULL
  • 모드 스케줄 ID (mode_schedule_id) — int — Foreign key → ModeSchedule.PK — NOT NULL
  • 모드 종류 (mode_type) — enum("Running", "Cleaning", "Secure") — Foreign key → ModeSchedule.모드 종류
  • 예약 인원 (person_reserved) — int — Foreign key → ModeSchedule.예약 인원
  • 최대 감지 인원 (max_person_deteced) — int
  • 감지 시간 (detected_time) — datetime
  • 감지 종료 시간 (dend_time) — datetime
  • info — varchar(200)

ModeSchedule (mode_schedule)

  • PK (id) — int — Primary key — NOT NULL
  • 모드 종류 (Key) — enum("Running", "Cleaning", "Secure") — Primary key
  • 예약 인원 (person_cnt) — int — Primary key
  • 대표자 명 (rep_name) — varchar(255)
  • 이용 시작 시간 (start_time) — datetime — NOT NULL
  • 이용 종료 시간 (end_time) — datetime — NOT NULL
  • 생성 시간 (created_at) — datetime
  • 수정 시간 (updated_at) — datetime

PlaceLogs (place_logs)

  • PK (idx) — int — Primary key — NOT NULL
  • 총 감지 인원수 (tp_cnt) — int
  • 감지 시간 (dt_time) — datetime

Users (users)

  • Key (id) — int — Primary key — NOT NULL
  • 사용자명 (username) — varchar(100)
  • 사용자 아이디 (user_id) — varchar(100) — NOT NULL
  • 비밀번호 (password_hash) — varchar(256)
  • 생성 시간 (created_at) — datetime
  • 수정 시간 (updated_at) — datetime
  • 이메일 (email) — varchar(255)
  • 카카오 계정 여부 (is_kakao) — tinyint(1)
  • 카카오 액세스 토큰 (kakao_access_token) — varchar(255)

Videos (videos)

  • PK (id) — int — Primary key — NOT NULL
  • 카메라 ID (camera_id) — Int — Foreign key → Cams.카메라 ID
  • 카메라명 (camera_name) — varchar(255) — Foreign key → Cams.카메라명
  • 녹화날짜 (recorded_date) — date
  • 녹화 시작 시간 (recorded_time) — time
  • 녹화영상주소 (video_path) — varchar(255) — NOT NULL
  • 감지영상여부 (is_dt) — tinyint(1)
  • 감지영상 녹화 종료 날짜 (rend_date) — date
  • 감지영상 녹화 종료 시간 (rend_time) — time
  • 비고 (info) — varchar(200)