gguro

Tables (11)

AnimalKnowledge (동물 지식)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 카테고리 (category) — enum — NOT NULL
  • 음성 (audio) — text — NOT NULL
  • 인트로 (intro) — text — NOT NULL

ChatRoom (채팅방)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 프로필 아이디 (profile_id) — bigint — Foreign key → Profile.아이디 — NOT NULL
  • 주제 (topic) — varchar(255) — NOT NULL
  • 카테고리 (category) — varchar(15) — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL

EmotionChange (감정 변화)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 프로필 아이디 (profile_id) — bigint — Foreign key → Profile.아이디 — NOT NULL
  • 좋아요 (is_like) — boolean — NOT NULL
  • 키워드 (keyword) — varchar(20) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL

LifestyleHabit (생활 습관)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 카테고리 (category) — enum — NOT NULL
  • 인트로 멘트 (intro) — text — NOT NULL

Profile (프로필)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 유저 아이디 (user_id) — bigint — Foreign key → User.아이디 — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL

ProfileImage (프로필 이미지)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 프로필 아이디 (profile_id) — bigint — Foreign key → Profile.아이디 — NOT NULL
  • 사진url (img_url) — text
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL

RolePlay (역할 놀이)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 카테고리 (category) — enum — NOT NULL
  • 인토로 (intro) — text — NOT NULL

SafetyStudy (안전 공부)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 인트로 멘트 (intro) — text — NOT NULL

Talk (대화)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 채팅방 아이디 (chatroom_id) — bigint — Foreign key → ChatRoom.아이디 — NOT NULL
  • 카테고리 (category) — varchar(15) — NOT NULL
  • 대화 내용 (content) — text — NOT NULL
  • 좋아요 (like) — boolean
  • 긍/부정 (positive) — boolean — NOT NULL
  • 대화 키워드 (keyword) — text — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL

User (유저)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 유저 아이디 (username) — varchar(20)
  • 보호자 이름 (nickname) — varchar(20) — NOT NULL
  • 비밀번호 (password) — varchar(20)
  • 소셜 로그인 여부 (is_social_login) — boolean — NOT NULL
  • 소셜 로그인 타입 (oauth_type) — varchar(20) — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL

analysis (분석)

  • 아이디 (id) — bigint — Primary key — NOT NULL
  • 대화 아이디 (talk_id) — bigint — Foreign key → Talk.아이디 — NOT NULL
  • 프로필 아이디 (profile_id) — bigint — Foreign key → Profile.아이디 — NOT NULL
  • 분석 요약 (summary) — varchar(255) — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6) — NOT NULL