<?php namespace NetSTI\System\Models;

use Model;

class Note extends Model{
	// VALIDATIONS RULES
	use \October\Rain\Database\Traits\Validation;
	public $rules = [
		'subject' => 'required'
	];

	// PROPERTIES
    public $table = 'netsti_system_notes';
    protected $guarded = [];

    // RELATIONS
    public $belongsTo = [
        'opportunity' => ['NetSTI\System\Models\Opportunity'],
        'owner' => ['Backend\Models\User'],
    ];
}