GatsInvest
Tables (11)
Accounts (accounts)
- 아이디 (id) — Int — Primary key — NOT NULL
- 계좌 이름 (account_name) — String
- 계좌 종류 (account_type) — String
- 계좌 번호 (account_number) — String
- 계좌 잔고 (account_balance) — Real
- 계좌 통화 (currency) — USD/KRW
- 계좌 API 키 (api_key) — String
- 계좌 API 비밀 (api_secret) — String
- 계좌 접근 토큰 (access_token) — String
- 계좌 접근 토큰 발급일자 (access_token_issued_at) — String
- 계좌 승인키 (approval_key) — String
- 계좌 승인키 발급일자 (approval_key_issued_at) — String
Asset Portfolio (asset_portfolio)
- 포폴 아이디 (id) — Int — Primary key — NOT NULL
- 자산 아이디 (asset_id) — Int — Foreign key → Assets.자산 분류 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 포폴 자산량 (total_amount) — Real
- 포폴 업데이트 날짜 (last_updated) — Date
Asset Transactions (asset_transactions)
- 거래 아이디 (id) — Int — Primary key — NOT NULL
- 자산 분류 (asset_id) — Int — Foreign key → Assets.자산 분류 — NOT NULL
- 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 거래 날짜 (date) — Date
- 거래량 (amount) — Real
- 거래 메모 (remarks) — String
Assets (assets)
- 자산 분류 (id) — Int — Primary key — NOT NULL
- 자산 이름 (name) — String
Config (config)
- 아이디 (id) — Int — Primary key — NOT NULL
- 구성 이름 (keyName) — String
- 구성 값 (keyValue) — String
Dividends (dividends)
- 아이디 (id) — Int — Primary key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 배당금 날짜 (date) — Date
- 배당금 주식 당 금액 (dividend_per_share) — Real
- 배당금 주식 수 (total_shares) — Int
- 배당금 총액 (total_dividend) — Real
Invest Info (invest_info)
- 아이디 (id) — Int — Primary key — NOT NULL
- 정보 이름 (key) — String
- 정보 값 (value) — String
Investment Note (investment_note)
- 아이디 (id) — Int — Primary key — NOT NULL
- 노트 제목 (title) — String
- 노트 날짜 (date) — String
- 노트 종류 (category) — String
- 노트 요약 (summary) — String
- 노트 내용 (content) — String
- 노트 관련 티커 (related_ticker) — String
Stock Portfolio (stock_portfolio)
- 주식 포폴 아이디 (id) — Int — Primary key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 주식 포폴 날짜 (date) — Date
- 주식 포폴 주식량 (quantity) — Int
- 주식 포폴 평가 금액 (total_evluation) — Real
- 주식 포폴 평균 매입 금액 (average_price) — Real
- 주식 포폴 실현 손익 (realized_profit_loss) — Real
- 주식 포폴 미실현 손익 (unrealized_profit_loss) — Real
- 주식 포폴 합계 손익 (total_profit_loss) — Real
Stock Transactions (stock_transactions)
- 아이디 (id) — Int — Primary key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 거래 날짜 (date) — Date
- 거래 종류 (trans_type) — Buy/Sell
- 거래량 (quantity) — Int
- 주식 거래 평균 매입/매수 가격 (price_per_share) — Real
- 주식 거래 총 매입/매수 가격 (total_price) — Real
- 주식 거래 손익(매도일 때만) (pr_ls) — Real
Stocks (stocks)
- 아이디 (id) — Int — Primary key — NOT NULL
- 주식 종목 코드 (symbol) — String
- 주식 이름 (name) — String
- 주식 섹터 (sector) — String
- 주식 통화 (currency) — String
- 종류 (stock_type) — String