PEAK
Tables (9)
analyze (분석)
- PK (id) — int — Primary key — NOT NULL — 분석 ID
- FK (lead_item_id) — int — Foreign key → prompt.FK — NOT NULL — 리드 아이템 ID
- FK (lead_item_user_id) — int — Foreign key → prompt.FK — NOT NULL — 리드 아이템 유저 ID
- Field (analyze_type) — emum — ai, hi 분석 유형
- Field (content) — text — 분석 내용
- Field (created_at) — datatime — 생성 날짜
- Field (updated_at) — datatime — 수정 날짜
lead_detail (리드 상세페이지)
- PK (id) — int — Primary key — NOT NULL — 리드 상세페이지 ID
- FK (lead_item_id) — int — Foreign key → lead_item.PK — NOT NULL — 리드 아이템 ID
- FK (lead_item_user_id) — int — Foreign key → lead_item.PK — NOT NULL — 리드 아이템 유저 ID
- (gpci_c_and_i_info) — json — GPCI C&I 항목
- (meddicc_scoreboard) — json — MEDDICC 스코어 보드
- (deal_probability) — int — 거래성사 가능성
- (reminder) — 리마인더
- (created_at) — datetime — 생성 날짜
- (updated_at) — datetime — 수정 날짜
lead_item (리드아이템)
- PK (id) — int — Primary key — NOT NULL — 리드 아이템 ID
- PK (lead_item_user_id) — int — Foreign key → lead_item_user.PK — NOT NULL — 리드 아이템 유저 ID
- (title) — varchar — 제목
- (description) — text — 설명
- (status) — 상태(GEN, PROP, NEGO, CLOSED, LOST)
- (created_at) — datetime — 생성 날짜
- (updated_at) — datetime — 수정 날짜
lead_item_user (리드아이템 유저)
- PK (id) — int — Primary key — NOT NULL — 리드 아이템 유저 ID
- FK (user_id) — Foreign key → user.PK — NOT NULL — 사용자 ID
- (role) — enum — 사용자 역할(core, sherpa, partner)
- (created_at) — datetime — 생성 날짜
- (updated_at) — datetime — 수정 날짜
memo (메모)
- PK (id) — int — Primary key — NOT NULL — 메모 ID
- FK (lead_item_id) — int — Foreign key → lead_detail.FK — NOT NULL — 리드 아이템 ID
- FK (lead_item_user_id) — int — Foreign key → lead_detail.FK — NOT NULL — 리드 아이템 유저 ID
- Field (memo) — text — 메모 내용
- Field (created_at) — datatime — 생성 날짜
- Field (updated_at) — datetime — 수정 날짜
partner (파트너)
- PK (id) — int — Primary key — NOT NULL — 파트너 ID
- PK (user_id) — int — Foreign key → user.PK — NOT NULL — 사용자 ID
- (company_name) — varchar — 회사명
- (representative_name) — text — 대표 이름
- (company_profile) — text — 회사 소개서
- (latest_analysis) — text — 최신 분석 내용
- (created_at) — datetime — 생성 날짜
- (updated_at) — datetime — 수정 날짜
prompt (프롬프트)
- PK (id) — int — Primary key — NOT NULL — 프롬프트 ID
- FK (lead_item_id) — int — Foreign key → lead_item.PK — NOT NULL — 리드 아이템 ID
- FK (lead_item_user_id) — int — Foreign key → lead_item.PK — NOT NULL — 리드 아이템 유저 ID
- (file_name) — varchar — 업로드 파일 이름
- (file_type) — varchar — 업로드 파일 유형
- (file_size) — int — 업로드 파일 크기
- (upload_date) — datetime — 파일 업로드 날짜
- (google_drive_url) — text — google drive 링크
- (link_url) — text — 링크 url
- (audio) — text — 파일 기반 오디오 생성
- (ai_summary) — text — ai 요약
- (question) — text — 추천 질문
- (recommended_questions) — text — 추천 질문 목록
- (created_at) — datetime — 생성 날짜
- (updated_at) — datetime — 수정 날짜
user (사용자)
- PK (id) — int — Primary key — NOT NULL — 사용자 ID
- (email) — varchar — 사용자 이메일(Unique)
- (password) — varchar — 사용자 비밀번호
- (remember_me) — boolean — 아이디 기억
- (phon_number) — int — 연락처 정보
- (created_at) — datetime — 생성 날짜
- (updated_at) — datetime — 수정 날짜
- (name) — text — 이름
- (title) — text — 직책
- (specialalization) — text — 전문 분야
- (assigned_leads) — text — 담당 리드
user_token (토큰)
- PK (id) — int — Primary key — NOT NULL — 토큰 ID
- FK (user_id) — int — Foreign key → user.PK — NOT NULL — 사용자 ID
- (access_token) — text — 엑세스 토큰
- (refresh_token) — text — 리프레시 토큰
- (created_at) — datetime — 토큰 생성 날짜
- (exoires_at) — datetime — 토큰 만료 날짜