CREATE TABLE world_indices_time_series (
index_name TEXT NOT NULL,
open_price REAL NOT NULL,
high_price REAL NOT NULL,
low_price REAL NOT NULL,
close_price REAL NOT NULL,
volume REAL NOT NULL,
registered_date TEXT NOT NULL,
registered_date_ts INT NOT NULL
);
CREATE TABLE economic_indicator_time_series (
indicator_name TEXT NOT NULL,
value REAL NOT NULL,
unit TEXT NOT NULL,
registered_date TEXT NOT NULL,
registered_date_ts INT NOT NULL
);
CREATE TABLE stock_overview (
symbol TEXT NOT NULL,
sector TEXT NOT NULL,
industry TEXT,
market_cap FLOAT,
ebitda FLOAT,
pe_ratio FLOAT,
forward_pe_ratio FLOAT,
trailing_pe_ratio FLOAT,
peg_ratio FLOAT,
book_value FLOAT,
divided_per_share FLOAT,
dividend_yield FLOAT,
eps FLOAT,
diluted_eps FLOAT,
revenue_per_share FLOAT,
profit_margin FLOAT,
operating_margin FLOAT,
return_on_assets FLOAT,
return_on_equity FLOAT,
revenue FLOAT,
gross_profit FLOAT,
quarterly_earnings_growth_yoy FLOAT,
quarterly_revenue_growth_yoy FLOAT,
target_price FLOAT,
beta FLOAT,
price_to_sales_ratio FLOAT,
price_to_book_ratio FLOAT,
ev_to_revenue FLOAT,
ev_to_ebitda FLOAT,
outstanding_shares FLOAT,
registered_date TEXT NOT NULL,
registered_date_ts INT NOT NULL
);
CREATE TABLE income_statement (
symbol TEXT NOT NULL,
fiscal_date_ending TEXT NOT NULL,
reported_currency TEXT,
gross_profit FLOAT,
total_revenue FLOAT,
cost_of_revenue FLOAT,
cost_of_goods_and_services_sold FLOAT,
operating_income FLOAT,
selling_general_and_administrative FLOAT,
research_and_development FLOAT,
operating_expenses FLOAT,
investment_income_net FLOAT,
net_interest_income FLOAT,
interest_income FLOAT,
interest_expense FLOAT,
non_interest_income FLOAT,
other_non_operating_income FLOAT,
depreciation FLOAT,
depreciation_and_amortization FLOAT,
income_before_tax FLOAT,
income_tax_expense FLOAT,
interest_and_debt_expense FLOAT,
net_income_from_continuing_operations FLOAT,
comprehensive_income_net_of_tax FLOAT,
ebit FLOAT,
ebitda FLOAT,
net_income FLOAT
);
CREATE TABLE balance_sheet (
symbol TEXT NOT NULL,
fiscal_date_ending TEXT NOT NULL,
reported_currency TEXT,
total_assets FLOAT,
total_current_assets FLOAT,
cash_and_cash_equivalents_at_carrying_value FLOAT,
cash_and_short_term_investments FLOAT,
inventory FLOAT,
current_net_receivables FLOAT,
total_non_current_assets FLOAT,
property_plant_equipment FLOAT,
accumulated_depreciation_amortization_ppe FLOAT,
intangible_assets FLOAT,
intangible_assets_excluding_goodwill FLOAT,
goodwill FLOAT,
investments FLOAT,
long_term_investments FLOAT,
short_term_investments FLOAT,
other_current_assets FLOAT,
other_non_current_assets FLOAT,
total_liabilities FLOAT,
total_current_liabilities FLOAT,
current_accounts_payable FLOAT,
deferred_revenue FLOAT,
current_debt FLOAT,
short_term_debt FLOAT,
total_non_current_liabilities FLOAT,
capital_lease_obligations FLOAT,
long_term_debt FLOAT,
current_long_term_debt FLOAT,
long_term_debt_noncurrent FLOAT,
short_long_term_debt_total FLOAT,
other_current_liabilities FLOAT,
other_non_current_liabilities FLOAT,
total_shareholder_equity FLOAT,
treasury_stock FLOAT,
retained_earnings FLOAT,
common_stock FLOAT,
common_stock_shares_outstanding FLOAT
);
CREATE TABLE cash_flow(
symbol TEXT NOT NULL,
fiscal_date_ending TEXT NOT NULL,
reported_currency TEXT,
operating_cashflow FLOAT,
payments_for_operating_activities FLOAT,
proceeds_from_operating_activities FLOAT,
change_in_operating_liabilities FLOAT,
change_in_operating_assets FLOAT,
depreciation_depletion_and_amortization FLOAT,
capital_expenditures FLOAT,
change_in_receivables FLOAT,
change_in_inventory FLOAT,
profit_loss FLOAT,
cashflow_from_investment FLOAT,
cashflow_from_financing FLOAT,
proceeds_from_repayments_of_short_term_debt FLOAT,
payments_for_repurchase_of_common_stock FLOAT,
payments_for_repurchase_of_equity FLOAT,
payments_for_repurchase_of_preferred_stock FLOAT,
dividend_payout FLOAT,
dividend_payout_common_stock FLOAT,
dividend_payout_preferred_stock FLOAT,
proceeds_from_issuance_of_common_stock FLOAT,
proceeds_from_issuance_of_long_term_debt_and_capital_securities_net FLOAT,
proceeds_from_issuance_of_preferred_stock FLOAT,
proceeds_from_repurchase_of_equity FLOAT,
proceeds_from_sale_of_treasury_stock FLOAT,
change_in_cash_and_cash_equivalents FLOAT,
change_in_exchange_rate FLOAT,
net_income FLOAT
);
CREATE TABLE stock_time_series (
symbol TEXT NOT NULL,
open_price REAL NOT NULL,
high_price REAL NOT NULL,
low_price REAL NOT NULL,
close_price REAL NOT NULL,
volume REAL NOT NULL,
dividend_amount REAL NOT NULL,
registered_date TEXT NOT NULL,
registered_date_ts INT NOT NULL
);
CREATE TABLE super_investor_portfolio_holding (
super_investor TEXT NOT NULL,
stock TEXT NOT NULL,
pct_of_portfolio REAL NOT NULL,
shares REAL NOT NULL,
reported_price TEXT NOT NULL,
value TEXT NOT NULL
);
CREATE TABLE super_investor_portfolio_sector_analysis (
super_investor TEXT NOT NULL,
sector_name TEXT NOT NULL,
sector_pct REAL NOT NULL
);
CREATE TABLE super_investor_grand_portfolio (
stock TEXT NOT NULL,
symbol TEXT NOT NULL,
ownership_count INT NOT NULL
);
Comments