emotionDiary

Tables (5)

DiaryEmotion (일기 감정)

  • ID (일기 식별용) — int — Primary key — NOT NULL
  • ID (일기 식별용2) — int — Foreign key → User_Diary.ID — NOT NULL
  • happiness (행복) — float
  • sadness (슬픔) — float
  • anger (분노) — float
  • fear (공포) — float
  • surprise (놀람) — float
  • disgust (역겨움) — float
  • created_at (작성 시간) — DATETIME

MonthlyEmotion (월간 감정)

  • id (식별용) — int — Primary key — NOT NULL
  • ID (식별 위한 아이디) — int — Foreign key → User_data.ID — NOT NULL
  • year (년도 표시) — int
  • month (월 표시) — int
  • happiness (행복) — float
  • sadness (슬픔) — float
  • anger (분노) — float
  • fear (공포) — float
  • surpirse (놀람) — float
  • disgust (역겨움) — float
  • created_at (작성 시간) — DATETIME

User_Diary (유저 일기)

  • ID (일기 식별용) — int — Primary key — NOT NULL
  • user_id (식별 위한 아이디) — int — Foreign key → User_data.ID — NOT NULL
  • title (제목) — VARCHAR
  • content (내용) — text
  • created_at (작성 시간) — DATETIME

User_data (유저 데이터)

  • ID (식별 위한 아이디) — int — Primary key — NOT NULL
  • username (사용자 아이디) — VARCHAR
  • password (비밀번호) — VARCHAR
  • email (사용자 이메일) — VARCHAR
  • first_name (성씨) — VARCHAR
  • last_name (이름) — VARCHAR
  • phone_number (핸드폰 번호) — VARCHAR

WeeklyEmotion (주간 감정)

  • id (일기 식별용) — int — Primary key — NOT NULL
  • ID (식별 위한 아이디) — int — Foreign key → User_data.ID — NOT NULL
  • week_start (한 주 시작) — DATE
  • week_end (한 주 끝) — DATE
  • happiness (행복) — float
  • sadness (슬픔) — float
  • anger (분노) — float
  • fear (공포) — float
  • surprise (놀람) — float
  • disgust (역겨움) — float
  • created_at (작성 시간) — DATETIME