Add database setup script for GPU service
- Created scripts/setup-database.sql to create aitbc_gpu database - Database configured with aitbc_gpu user and privileges This is Phase 4.3c: Setup separate database for GPU service
This commit is contained in:
19
apps/gpu-service/scripts/setup-database.sql
Normal file
19
apps/gpu-service/scripts/setup-database.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- Setup database for GPU service
|
||||
|
||||
-- Create database
|
||||
CREATE DATABASE aitbc_gpu;
|
||||
|
||||
-- Create user
|
||||
CREATE USER aitbc_gpu WITH PASSWORD 'password';
|
||||
|
||||
-- Grant privileges
|
||||
GRANT ALL PRIVILEGES ON DATABASE aitbc_gpu TO aitbc_gpu;
|
||||
|
||||
-- Connect to the database
|
||||
\c aitbc_gpu
|
||||
|
||||
-- Grant schema privileges
|
||||
GRANT ALL ON SCHEMA public TO aitbc_gpu;
|
||||
|
||||
-- Exit
|
||||
\q
|
||||
Reference in New Issue
Block a user