41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\model\Tenant;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* 租户模型
|
|
*/
|
|
class Tenant extends Model
|
|
{
|
|
// 数据库表名
|
|
protected $name = 'mete_tenant';
|
|
|
|
// 字段类型转换
|
|
protected $type = [
|
|
'id' => 'integer',
|
|
'tenant_code' => 'string',
|
|
'tenant_name' => 'string',
|
|
'contact_person' => 'string',
|
|
'contact_phone' => 'string',
|
|
'contact_email' => 'string',
|
|
'address' => 'string',
|
|
'domain' => 'string',
|
|
'status' => 'integer',
|
|
'create_time' => 'datetime',
|
|
'update_time' => 'datetime',
|
|
'delete_time' => 'datetime',
|
|
'remark' => 'string',
|
|
];
|
|
}
|