#23 initial scaffolding for rankings

This commit is contained in:
Nabeel Shahzad
2017-06-21 12:10:25 -05:00
parent 381a713882
commit b5c41626c5
16 changed files with 535 additions and 1 deletions

42
app/Models/Ranking.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Eloquent as Model;
/**
* Class Ranking
* @package App\Models
*/
class Ranking extends Model
{
public $table = 'rankings';
public $fillable = [
'name',
'hours',
'auto_approve_acars',
'auto_approve_manual',
'auto_promote'
];
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts = [
'name' => 'string',
'hours' => 'integer'
];
/**
* Validation rules
*
* @var array
*/
public static $rules = [
];
}