"""This module contains the constants for the ``licences`` app"""

from extended_choices.choices import Choices

LICENCE_CHOICES = Choices(
    ('ESSENTIAL', 'essential', 'Essential'),
    ('BUSINESS', 'business', 'Business'),
    ('ENTERPRISE', 'enterprise', 'Enterprise')
)

LICENCES = {
    LICENCE_CHOICES.ESSENTIAL: {
        'DISABLED_ACTIVITIES': [
            'evaluation',
            'race',
        ],
        'THEMES': False,
        'SYNCHRONOUS_SUPPORT': False,
        'MAX_MEDIA_STORAGE': 524288000,  # 500 Mo
        'MAX_TRAINEES_PER_SESSION': 50,
    },
    LICENCE_CHOICES.BUSINESS: {
        'DISABLED_ACTIVITIES': [],
        'THEMES': True,
        'SYNCHRONOUS_SUPPORT': True,
        'MAX_MEDIA_STORAGE': 1073741824,  # 1 Go
        'MAX_TRAINEES_PER_SESSION': 100
    },
    LICENCE_CHOICES.ENTERPRISE: {
        'DISABLED_ACTIVITIES': [],
        'THEMES': True,
        'SYNCHRONOUS_SUPPORT': True,
        'MAX_MEDIA_STORAGE': 0,
        'MAX_TRAINEES_PER_SESSION': 150
    }
}
