<?php
/**
 * This source file is part of the open source project
 * ExpressionEngine (https://expressionengine.com)
 *
 * @link      https://expressionengine.com/
 * @copyright Copyright (c) 2003-2022, Packet Tide, LLC (https://www.packettide.com)
 * @license   https://expressionengine.com/license Licensed under Apache License, Version 2.0
 */

namespace ExpressionEngine\Addons\Spam\Model;

use ExpressionEngine\Service\Model\Model;

/**
 * SpamKernel Model
 */
class SpamKernel extends Model
{
    protected static $_table_name = 'spam_kernels';
    protected static $_primary_key = 'kernel_id';

    protected static $_relationships = array(
        'Vocabulary' => array(
            'type' => 'hasMany',
            'model' => 'SpamVocabulary',
            'to_key' => 'kernel_id'
        ),
        'Parameters' => array(
            'type' => 'hasMany',
            'model' => 'SpamParameter',
            'to_key' => 'kernel_id'
        ),
        'Training' => array(
            'type' => 'hasMany',
            'model' => 'SpamTraining',
            'to_key' => 'kernel_id'
        ),
    );

    protected $kernel_id;
    protected $name;
    protected $count;
}

// EOF
