Your IP : 216.73.216.79


Current Path : /var/www/html/sprm/backend/models/
Upload File :
Current File : /var/www/html/sprm/backend/models/CorruptionOffendersCase.php

<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "corruption_offenders_case".
 *
 * @property int $id
 * @property int|null $offenders_id
 * @property string|null $case_no
 * @property string|null $summary_charges
 * @property string|null $offense
 * @property string|null $punishment
 * @property string|null $created_at
 * @property int|null $created_by
 * @property string|null $updated_at
 * @property int|null $updated_by
 */
class CorruptionOffendersCase extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'corruption_offenders_case';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['offenders_id', 'created_by', 'updated_by'], 'integer'],
            [['summary_charges', 'offense', 'punishment'], 'string'],
            [['created_at', 'updated_at'], 'safe'],
            [['case_no'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'offenders_id' => 'Offenders ID',
            'case_no' => 'Case No',
            'summary_charges' => 'Summary Charges',
            'offense' => 'Offense',
            'punishment' => 'Punishment',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
        ];
    }
}