mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 02:59:13 +00:00
* feat: enhance modularity by relocating core packages * refactor: move chart components to dashboard package * refactor: restructure database access layer * refactor: rename credential descriptor to credentials for clarity * feat: enhance development environment configuration for database interactions * feat: integrate go-task for database migrations * feat: introduce middleware for market data and WebAuthn
16 lines
609 B
SQL
16 lines
609 B
SQL
-- Fear and Greed Index data from Alternative.me
|
|
CREATE TABLE fear_greed_index (
|
|
id TEXT PRIMARY KEY,
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
deleted_at TIMESTAMP,
|
|
value INTEGER NOT NULL,
|
|
value_classification TEXT NOT NULL,
|
|
timestamp TIMESTAMP NOT NULL,
|
|
time_until_update TEXT
|
|
);
|
|
|
|
CREATE INDEX idx_fear_greed_index_timestamp ON fear_greed_index(timestamp);
|
|
CREATE INDEX idx_fear_greed_index_value ON fear_greed_index(value);
|
|
CREATE INDEX idx_fear_greed_index_deleted_at ON fear_greed_index(deleted_at);
|