chatbot

Tables (3)

conversations (대화)

  • 대화 ID (id) — NOTNULL — Primary key — NOT NULL
  • 제목 (title) — NOTNULL
  • 생성 시간 (created_at)
  • 갱신 시간 (updated_at)
  • 유저 ID (user_id) — NOTNULL — Foreign key → users.유저 ID — NOT NULL

message (메세지)

  • 메세지 ID (id) — NOTNULL — Primary key — NOT NULL
  • 역할 (role)
  • 내용 (content)
  • 생성시간 (created_at)
  • 대화 ID (conversation_id) — NOTNULL — Foreign key → conversations.대화 ID — NOT NULL

users (사용자)

  • 유저 ID (id) — NOTNULL — Primary key — NOT NULL
  • API 키 (api_key) — NOTNULL
  • 생성 시간 (created_at)
  • 갱신 시간 (updated_at)
  • 로그인 ID (login) — NOTNULL
  • 비밀번호 (password) — NOTNULL
  • 유저 이름 (username) — NOTNULL