48 lines
815 B
PHP
48 lines
815 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use support\Model;
|
|
|
|
/**
|
|
* user_roles 用户-角色关联
|
|
* @property integer $user_id 用户ID(主键)
|
|
* @property integer $role_id 角色ID(主键)
|
|
*/
|
|
class UserRoles extends Model
|
|
{
|
|
/**
|
|
* The connection name for the model.
|
|
*
|
|
* @var string|null
|
|
*/
|
|
protected $connection = 'mysql';
|
|
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'user_roles';
|
|
|
|
/**
|
|
* The primary key associated with the table.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = null;
|
|
|
|
/**
|
|
* Indicates if the model should be timestamped.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'role_id'
|
|
];
|
|
}
|