<?php namespace tps\Airport\Models;

use Model;

/**
 * Model
 */
class Page extends Model
{
    use \October\Rain\Database\Traits\Validation;

    use \October\Rain\Database\Traits\SoftDelete;

    protected $dates = ['deleted_at'];

    public $belongsTo = [
        'menu' => ['tps\Airport\Models\Menu',
            'table' => 'tps_airport_menu',
            'key' => 'menu_id'
        ],
        'content_id' => ['tps\Airport\Models\Content',
            'table' => 'tps_airport_contents',
            // 'key' => 'content_id'
        ]
    ];

    /**
     * @var string The database table used by the model.
     */
    public $table = 'tps_airport_page';

    /**
     * @var array Validation rules
     */
    public $rules = [
    ];
}
