ai특강
테이블 (7)
AIResult (AI 결과)
- ID (analysis_id) — big int — 기본 키 — NOT NULL — (Primary Key, Auto Increment)
- 모델명 (model_name) — varchar(100) — unique
- 정확도 (accuracy) — float — 0.0 ~ 1.0
- 분석일 (analysis_date) — datetime
- A1 — float
- A2 — float
- A3 — float
- A4 — float
- A5 — float
- A6 — float
- A7 — float
Customer (회원)
- ID (customer_id) — bigint — 기본 키 — NOT NULL — (Primary Key, Auto Increment)
- 별명 (nickname) — varchar(100)
- 이메일 (email) — varchar(255) — unique
- JWT 갱신 토큰 (refresh_token) — varchar(255)
- 인증 타입 구분 (auth_provider) — varchar(255)
- 가입 일자 (registration_date) — Datetime
DiseasePredictionRecord (질환 예측 기록)
- ID (record_id) — big int — 기본 키 — NOT NULL
- ID (pet_id) — big int — 외래 키 → Pet.ID — NOT NULL — (Primary Key, Auto Increment)
- ID (disease_id) — int — 외래 키 → DiseaseType.ID — NOT NULL
- ID (analysis_id) — big int — 외래 키 → AIResult.ID — NOT NULL — (Primary Key, Auto Increment)
- 이미지 (image_url) — text
- 날짜 (timestamp) — datetime
DiseaseType (질병유형)
- ID (disease_id) — int — 기본 키 — NOT NULL
- 질병명 (disease_name) — varchar(20) — - A1=구진/플라크 - A2=비듬/각질/상피성잔고리 - A3=태선화 과다색소침착 - A4=농포/여드름 - A5=미란/궤양 - A6=결정/종괴 - A7=무증상
HealthRecord (건강 기록)
- ID (record_id) — big int — 기본 키 — NOT NULL — Primary Key, Auto Increment
- ID (pet_id) — big int — 외래 키 → Pet.ID — NOT NULL — (Primary Key, Auto Increment)
- ID (item_id) — int — 외래 키 → ItemType.ID — NOT NULL
- 메모 (memo) — text
- 날짜 (timestamp) — datetime
ItemType (항목 유형)
- ID (item_id) — int — 기본 키 — NOT NULL
- 항목 이름 (item_name) — varchar(20)
Pet (반려동물)
- ID (pet_id) — big int — 기본 키 — NOT NULL — (Primary Key, Auto Increment)
- ID (customer_id) — big int — 외래 키 → Customer.ID — NOT NULL — (Primary Key, Auto Increment)
- 이름 (name) — big int
- 종 (species) — enum('cat', 'dog')
- 품종 (breed) — varchar(50)
- 나이 (age) — int
- 성별 (gender) — char(1) — M : Male (수컷) F : Female (암컷) NM : Neutered Male (중성화된 수컷) NF : Neutered Female (중성화된 암컷)
- 등록 일자 (registration_date) — Datetime