hyperf-chat/app/Model/ArticleClass.php

45 lines
865 B
PHP
Raw Normal View History

2020-11-04 17:36:52 +08:00
<?php
declare (strict_types=1);
namespace App\Model;
/**
* @property int $id
* @property int $user_id
* @property string $class_name
* @property int $sort
* @property int $is_default
* @property \Carbon\Carbon $created_at
*/
class ArticleClass extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'article_class';
/**
* The attributes that are mass assignable.
*
* @var array
*/
2020-11-04 22:58:49 +08:00
protected $fillable = [
'user_id',
'class_name',
'sort',
'is_default',
'created_at',
];
2020-11-04 17:36:52 +08:00
/**
* The attributes that should be cast to native types.
*
* @var array
*/
2020-11-04 22:58:49 +08:00
protected $casts = ['id' => 'integer', 'user_id' => 'integer', 'sort' => 'integer', 'is_default' => 'integer', 'created_at' => 'int'];
2020-11-04 17:36:52 +08:00
}