add init-db.sql

This commit is contained in:
lasse 2025-05-27 14:43:00 +02:00
parent b68f1b51ce
commit f674c19a67
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -155,6 +155,7 @@ dist/
# PostgreSQL # PostgreSQL
*.sql *.sql
!init-db.sql
# Database dumps # Database dumps
*.dump *.dump

11
init-db.sql Normal file
View File

@ -0,0 +1,11 @@
-- Optional database initialization script
-- This file will be executed when the PostgreSQL container starts for the first time
-- Create extensions if needed
-- CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- You can add any initial database setup here
-- For example, creating additional users, setting permissions, etc.
-- Note: Your FastAPI app with Alembic will handle the actual table creation
-- This file is mainly for any PostgreSQL-specific setup