shelter

Tables (11)

Aircon (리모컨코드)

  • id — Primary key — NOT NULL
  • IR 값 (irValue)
  • 프로토콜 (protocol)
  • 기능 (function)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)
  • shelter_id — Foreign key → Shelter.id — NOT NULL

Log (로그)

  • id — long — Primary key — NOT NULL
  • 기기 (device)
  • 동작 (command)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)
  • shelter_id — Foreign key → Shelter.id — NOT NULL

Shelter (쉘터 테이블)

  • id — Primary key — NOT NULL
  • 이름 (name)
  • 주소 (address)
  • 에어컨 가동 유무 (airconditioner)
  • 티비 가동 유무 (tv)
  • 에어컨 온도 (airTemp)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)
  • user_id — Foreign key → User.id — NOT NULL

Shelter (쉘터)

  • id — Primary key — NOT NULL
  • 이름 (name)
  • 주소 (address)
  • 에어컨 가동 유무 (airconditioner)
  • 티비 가동 유무 (tv)
  • 에어컨 온도 (airTemp)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)
  • user_id — Foreign key → User.id — NOT NULL

Tv (티비코드)

  • id — Primary key — NOT NULL
  • IR 값 (irValue)
  • 프로토콜 (protocol)
  • 기능 (function)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)
  • shelter_id — Foreign key → Shelter.id — NOT NULL

User (회원 테이블)

  • id — Primary key — NOT NULL
  • 아이디 (userId)
  • 비밀번호 (password)
  • 이름 (name)
  • 이메일 (email)
  • 권한 (ROLE)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)

User (회원)

  • id — Primary key — NOT NULL
  • 아이디 (userId)
  • 비밀번호 (password)
  • 이름 (name)
  • 이메일 (email)
  • 권한 (ROLE)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)

airconditioner (에어컨)

  • id — Primary key — NOT NULL
  • IR코드 (irValue)
  • 프로토콜 (protocol)
  • 기능 (feature)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)

light (조명)

  • id — Primary key — NOT NULL
  • Field
  • id (id2) — Foreign key → Shelter.id — NOT NULL

temp (온습도)

  • id — Primary key — NOT NULL
  • 온도 (temperature)
  • 습도 (humidity)
  • 생성 날짜 (created)
  • shelter_id — Foreign key → Shelter.id — NOT NULL

tv (TV)

  • id — Primary key — NOT NULL
  • IR코드 (irValue)
  • 프로토콜 (protocol)
  • 기능 (feature)
  • 생성 날짜 (created)
  • 수정 날짜 (modified)