PET CARE

Tables (8)

account (계정)

  • pk (account_pk) — int — Primary key — NOT NULL
  • ID (id) — string — NOT NULL — 사용자 ID
  • 기기 고유번호 (device_id) — string
  • 생성일자 (created_at) — datetime — NOT NULL
  • 마지막 접속일시 (visited_at) — datetime — NOT NULL
  • 상태 (status) — string
  • pk (user_pk) — int — Foreign key → user.pk — NOT NULL

cate (* 펫 종류)

  • pk (cate_pk) — int — Primary key — NOT NULL
  • 종류 (type) — string — NOT NULL

data (데이터)

  • pk (data_pk) — int — Primary key — NOT NULL
  • 가속도계 (accelerometer) — string — 가속도 X,Y,Z축 데이터
  • BIA (bia) — string — 생체 임피던스 분석
  • ECG (ecg) — string — 심전도
  • Heart rate (heart_rate) — string — 심박수
  • PPG (ppg) — string — 광용적맥파
  • Skin tepertaure (skin_temperature) — string — 피부 온도
  • spO2 (sp_o2) — string — 혈중 산소 수치
  • sweat loss (sweat_loss) — string — 땀 손실
  • 생성일자 (created_at) — datetime — NOT NULL
  • pet_pk — int — Foreign key → pet.pk — NOT NULL

data_log (측정 이력)

  • pk (log_pk) — int — Primary key — NOT NULL
  • pet_pk — INT — NOT NULL
  • sensor_type — VARCHAR(50)
  • value — TEXT
  • measured_at — DATETIME — NOT NULL

pet (반려동물)

  • pk (pet_pk) — int — Primary key — NOT NULL
  • 이름 (name) — string — NOT NULL
  • 나이 (age) — string — NOT NULL
  • 몸무게 (weight) — double
  • 주인 고유 id (user_pk) — int — Foreign key → user.pk — NOT NULL
  • 펫 종류 (cate) — int — Foreign key → cate.pk — NOT NULL

pet_device (반려동물 디바이스)

  • pk (pet_device_pk) — int — Primary key — NOT NULL
  • 기기 고유번호 (device_id) — string — NOT NULL — 고유 디바이스 id
  • 마지막 동기화 시점 (updated_at) — datetime
  • pet_pk — int — Foreign key → pet.pk — NOT NULL

sensor_data (워치 센서 데이터)

  • pk (sensor_pk) — int — Primary key — NOT NULL
  • gyro — string — 자이로센서
  • pulse — string — 심박센서
  • step count (step) — string — 만보기센서
  • speed — string — 속도센서
  • 생성일자 (created_at) — datetime — NOT NULL
  • pet_pk — int — Foreign key → pet.pk — NOT NULL

user (사용자(인간))

  • pk (user_pk) — int — Primary key — NOT NULL
  • 이름 (name) — string — NOT NULL