# -*- coding: utf-8 -*-
from odoo import fields, models


class FamilyLawConflictHit(models.Model):
    _name = "familylaw.conflict.hit"
    _description = "Conflict Screening Hit"
    _order = "create_date desc"

    case_id = fields.Many2one(
        "familylaw.case",
        required=True,
        ondelete="cascade",
        index=True,
    )
    party_name = fields.Char(string="Flagged Party Name", required=True)
    hit_case_id = fields.Many2one(
        "familylaw.case",
        string="Found In Matter",
    )
    hit_role = fields.Char(string="Role in Matching Matter")
    reason = fields.Char(string="Reason for Flag")
