from odoo import models, fields


class EncoachIeltsStandardsCheck(models.Model):
    _name = 'encoach.ielts.standards.check'
    _description = 'IELTS Standards Check'

    content_id = fields.Integer(required=True)
    content_type = fields.Selection([
        ('passage', 'Passage'),
        ('audio', 'Audio'),
        ('writing_prompt', 'Writing Prompt'),
        ('speaking_card', 'Speaking Card'),
    ], required=True)
    check_type = fields.Selection([
        ('format_compliance', 'Format Compliance'),
        ('band_calibration', 'Band Calibration'),
        ('answer_key_completeness', 'Answer Key Completeness'),
    ], required=True)
    passed = fields.Boolean(default=False)
    error_detail = fields.Text()
    checked_at = fields.Datetime(default=fields.Datetime.now)
