feat: Add frontend and backend initialization scripts, implement Keycloak and PostgreSQL setup
- Implemented SvelteKit frontend with authentication callback handling. - Created demo routes and paraglide localization functionality. - Added health check and entrypoint scripts for backend services. - Established PostgreSQL and Keycloak initialization scripts with health checks. - Introduced models for database schema using SQLAlchemy. - Configured Vite and SvelteKit for development and testing environments. - Added health check script to verify service statuses and resource usage. - Created Docker entrypoint scripts for seamless service startup.
This commit is contained in:
16
backend/api/v1/modules/public/payment_methods/models.py
Normal file
16
backend/api/v1/modules/public/payment_methods/models.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from sqlalchemy import String, PrimaryKeyConstraint
|
||||
from sqlalchemy.orm import mapped_column, Mapped
|
||||
from core.database import Base
|
||||
|
||||
class PaymentMethod(Base):
|
||||
__tablename__ = "payment_methods" #GFormaPago
|
||||
__table_args__ = (
|
||||
PrimaryKeyConstraint("key", name="payment_methods_pkey"),
|
||||
{"schema": "public"} # opcional
|
||||
)
|
||||
|
||||
key: Mapped[str] = mapped_column(String(2), nullable=False)
|
||||
description: Mapped[str] = mapped_column(String(100), nullable=False)
|
||||
|
||||
def __repr__(self):
|
||||
return f"<PaymentMethod(key={self.key}, description={self.description})>"
|
||||
Reference in New Issue
Block a user