from odoo import models, fields


class EncoachAdaptivePath(models.Model):
    _name = 'encoach.adaptive.path'
    _description = 'Adaptive Learning Path'

    student_id = fields.Many2one('res.users', required=True, ondelete='cascade', index=True)
    course_id = fields.Many2one('op.course', ondelete='set null')
    module_queue = fields.Text()
    source = fields.Selection([
        ('placement', 'Placement'),
        ('exam', 'Exam'),
        ('ai_generated', 'AI Generated'),
    ])
    next_generation_brief = fields.Text()
