finngraph-schema
Tables (21)
companies (기업)
- id (아이디) — PK — Primary key — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → stocks.id — NOT NULL
- name (회사명)
- corpcode (DART 회사 코드)
- description (회사 소개)
- country (국적)
- image_url (이미지URL)
- created_at (생성시간)
company_fundamentals (재무지표)
- id (고유 아이디) — PK — Primary key — NOT NULL
- company_id (회사 아이디) — FK — Foreign key → companies.id — NOT NULL
- stock_id (name) — Foreign key → companies.stock_id — NOT NULL
- fiscal_year (연도)
- sales (매출액)
- operating_profit (영업이익)
- operating_profit_margin (영업이익률)
- net_profit_margin (순이익률)
- total_assets (자산총계)
- total_equity (자본총계)
- total_liabilities (부채총계)
- debt_ratio (부채비율)
- is_consensus (컨센서스 유무)
- created_at (생성시간)
disclosures (DART 공시)
- id (공시 아이디) — PK — Primary key — NOT NULL
- company_id (기업 아이디) — FK — Foreign key → companies.id — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → companies.stock_id — NOT NULL
- rcept_no (Field)
- Field2
- Field3
- Field4
hot_themes (핫테마)
- id (아이디) — PK — Primary key — NOT NULL
- theme_id (테마 아이디) — FK — Foreign key → themes.id — NOT NULL
- change_rate (등락률)
- created_at (생성시간)
- trade_date (거래일자)
news (뉴스)
- id (아이디) — PK — Primary key — NOT NULL
- cluster_id (클러스터 아이디) — FK — Foreign key → news_clusters.id — NOT NULL
- title (제목)
- text (본문)
- published_at (발행시각)
- summary (요약)
- link (링크)
- original_link (원본 링크)
- cluster_terms (클러스터 키워드)
- triple_extracted (트리플 추출 여부)
- created_at (생성시간)
news_clusters (뉴스 클러스터)
- id (아이디) — PK — Primary key — NOT NULL
- representative_id (대표 뉴스 아이디) — FK
- title (Field2)
- keywords (centroid 상위 토큰)
- centroids (센트로이드)
- doc_count (기사 개수)
- first_published_at (Field8)
- mean_published_at (Field9)
- last_published_at (Field6)
- created_at (Field4)
- updated_at (Field5)
news_stocks (뉴스 등장 종목)
- id (PK) — PK — Primary key — NOT NULL
- stock_id (주식 아이디) — FK — Foreign key → stocks.id — NOT NULL
- news_id (뉴스 아이디) — FK — Foreign key → news.id — NOT NULL
- id (PK2) — Foreign key → news.cluster_id — NOT NULL
- created_at (생성시간)
news_triples (뉴스 트리플)
- id (아이디) — PK — Primary key — NOT NULL
- cluster_id (클러스터 아이디) — FK — Foreign key → news_clusters.id — NOT NULL
- subject_stock_id (주체 종목 아이디)
- relation (관계타입)
- object_stock_id (객체 종목 아이디)
- item (Field4)
- tense (Field5)
- mentioned_at (Field)
- created_at (Field6)
researches (Untitled)
- Key — Primary key — NOT NULL
- id (name) — PK — Foreign key → stocks.id — NOT NULL
- Field
search_query_templates (뉴스 검색 템플릿)
- id (아이디) — PK — Primary key — NOT NULL
- template (템플릿)
stock_aliases (종목 지칭 사전)
- id (아이디) — PK — Primary key — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → stocks.id — NOT NULL
- alias (종목 별칭) — NOT NULL
- created_at (생성시간)
- alias_type (별칭성격)
stock_candles_daily (종목 일봉)
- id (고유 아이디) — PK — Primary key — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → stocks.id — NOT NULL
- trade_date (거래일자)
- open (시가)
- high (고가)
- low (저가)
- close (종가)
- volume (거래량)
- trade_value (거래대금)
- created_at (생성시간)
stock_candles_period (종목 기간봉)
- id (고유 아이디) — PK — Primary key — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → stocks.id — NOT NULL
- period (주월구분)
- base_date (기준일자)
- open (시가)
- high (고가)
- low (저가)
- close (종가)
- volume (거래량)
- trade_value (거래대금)
- created_at (생성시간)
stock_investor_flows (투자자별 수급)
- id (PK) — PK — Primary key — NOT NULL
- stock_id (name) — FK — Foreign key → stocks.id — NOT NULL
- trade_date (거래일자) — int
- individual_net_qty (개인투자자 수급)
- institution_net_qty (기관투자자 수급)
- foreign_net_qty (외국인투자자 수급)
- foreign_hold_ratio (외국인 보유율) — numeric
- created_at (생성시간)
stock_search_history (종목 검색 내역)
- id (아이디) — PK — Primary key — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → stocks.id — NOT NULL
- last_search_at (최근 검색 시간)
stock_valuations (투자지표)
- id (고유 아이디) — PK — Primary key — NOT NULL
- stock_id (종목 아이디) — FK — Foreign key → stocks.id — NOT NULL
- fiscal_year (연도)
- base_date (기준일자)
- per (주가수익비율)
- pbr (주가순자산비율)
- roe (자기자본이익률)
- eps (Field4)
- bps (Field5)
- div (배당수익률)
- dps (주당배당금)
- payout_ratio (배당성향)
stocks (주식)
- id (name) — PK — Primary key — NOT NULL
- name (종목명)
- ticker (티커)
- isin (국제표준증권식별코드)
- exchange (거래소)
- change_rate (전일 대비 등락률)
- per (주가수익비율)
- eps (주가순자산비율)
- pbr (Field3)
- bps (Field4)
- roe (Field)
- dps (주당배당금)
- div (배당수익률)
- change_rate_1w (기간 등락률 (1주))
- change_rate_1m (기간 등락률 (1달))
- change_rate_3m (기간 등락률 (3달))
- change_rate_base_date (Field7)
- week52_high (52주 최고가)
- week52_low (52주 최저가)
- is_krx100 (KRX100 여부)
- is_krx300 (KRX300 여부)
- is_kosdaq150 (KOSDAQ150 여부)
- created_at (생성시간)
theme_candles_daily (테마 일봉)
- id (PK) — Primary key — NOT NULL
- theme_id (FK) — Foreign key → themes.id — NOT NULL
- trade_date (거래일자)
- open (시가)
- high (고가)
- low (저가)
- close (종가)
- volume (거래량)
- trade_value (거래대금)
- created_at (생성시간)
theme_candles_period (테마 기간봉)
- id (PK) — Primary key — NOT NULL
- theme_id (FK) — Foreign key → themes.id — NOT NULL
- base_date (기준일자)
- open (시가)
- high (고가)
- low (저가)
- close (종가)
- volume (거래량)
- trade_value (거래대금)
- created_at (생성시간)
theme_stocks (테마 편입 종목)
- id (PK) — PK — Primary key — NOT NULL
- stock_id (주식 아이디) — FK — Foreign key → stocks.id — NOT NULL
- theme_id (테마 아이디) — FK — Foreign key → themes.id — NOT NULL
- created_at (생성시간)
themes (테마)
- id (PK) — PK — Primary key — NOT NULL
- name (테마명)
- description (테마 소개)
- sources (크롤링 소스)
- created_at (생성시간)