54 lines
1003 B
PHP
54 lines
1003 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use support\Model;
|
|
|
|
/**
|
|
* user_systems 用户-系统关联表:描述用户可访问哪些系统
|
|
* @property integer $user_id 用户ID(主键)
|
|
* @property integer $system_id 系统ID(主键)
|
|
* @property integer $created_at 创建时间
|
|
*/
|
|
class UserSystems 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_systems';
|
|
|
|
/**
|
|
* 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 $dateFormat = 'U';
|
|
|
|
// const UPDATED_AT = false;
|
|
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'system_id',
|
|
'created_at'
|
|
];
|
|
}
|