<?php namespace App\Models;

class Competitions extends GenericCentral
{

    protected $table = 'competitions';
    protected $primaryKey = 'id';
    public $module = 'competitions';

    protected $guarded = [];
    public $timestamps = true;

    public $translatable = ['web_image', 'app_image', 'timer_title', 'timer_subtitle', 'content'];
    protected $appends = ['local_start', 'local_end'];
    public function __construct()
    {
        parent::__construct();

    }

    public static function querySelect()
    {

        return "  SELECT competitions.* FROM competitions  ";
    }

    public static function queryWhere()
    {

        return "  WHERE competitions.id IS NOT NULL ";
    }

    public static function queryGroup()
    {
        return "  ";
    }
}
