feat: Initialize SQLAlchemy backend and database structure

- Added SQLAlchemy initialization script for backend setup.
- Created SQLAlchemy prompts for generating database models with LLMs.
- Introduced Docker Compose configuration for PostgreSQL service.
- Added SQL script to enable necessary PostgreSQL extensions.
This commit is contained in:
2025-08-21 02:19:57 +02:00
parent 835c6b743f
commit 7bcfb7504f
9 changed files with 1068 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
version: '3.8'
services:
postgres_ext:
build:
context: .
restart: always
ports:
- 55432:5432
environment:
POSTGRES_PASSWORD: mipassword
POSTGRES_USER: postgres
POSTGRES_DB: basededatos
healthcheck:
test:
- CMD-SHELL
- pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: {}