added new exchanges system
This commit is contained in:
parent
95eda4a842
commit
263e9513b7
98 changed files with 4643 additions and 1496 deletions
13
database/postgres/init/01-init-database.sql
Normal file
13
database/postgres/init/01-init-database.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Initialize main database and user
|
||||
-- This runs first when PostgreSQL container starts
|
||||
|
||||
-- Create main database if it doesn't exist
|
||||
SELECT 'CREATE DATABASE trading_bot'
|
||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'trading_bot')\gexec
|
||||
|
||||
-- Connect to the trading_bot database
|
||||
\c trading_bot;
|
||||
|
||||
-- Create extensions we'll need
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
CREATE EXTENSION IF NOT EXISTS "pg_trgm"; -- For fuzzy string matching
|
||||
Loading…
Add table
Add a link
Reference in a new issue