ADMIN_ROLE_ID = 1
GERENTE_ROLE_ID = 2
SUPERVISOR_ROLE_ID = 3
EVALUADO_ROLE_ID = 4 
TALENTO_HUMANO_ROLE_ID = 5
DIRECTOR_ROLE_ID = 6

import os

# Get the base directory of the application
basedir = os.path.abspath(os.path.dirname(__file__))

class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'your-very-secret-key'
    # Add or confirm this line:
    UPLOAD_FOLDER = os.path.join(basedir, 'static', 'uploads', 'cursos')
    # Add or confirm this line:
    ALLOWED_EXTENSIONS = {'pdf'} # Ensure 'pdf' is in lowercase and it's a set

    # Database configuration (adjust as per your setup)
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
                              'sqlite:///' + os.path.join(basedir, 'app.db')
    SQLALCHEMY_TRACK_MODIFICATIONS = False