You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
user_center/app/Models/SystemSettingT.php

42 lines
1.6 KiB

4 years ago
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* This is the model class for table "uc_system_setting_t".
*
* @property $id bigint
* @property $title varchar
* @property $name varchar
* @property $data_type set
* @property $prop varchar
* @property $group varchar
* @property $content varchar
* @property $remark varchar
* @property $sort int
* @property $status tinyint
* @property $created_at timestamp
* @property $updated_at timestamp
*/
class SystemSettingT extends Model
{
use HasFactory;
protected $table = 'uc_system_setting_t';
public $attrs = [
'title' => ['name' => 'title', 'title' => '标题', 'type' => 'varchar', 'is_must' => '1'],
'name' => ['name' => 'name', 'title' => '名字,英文唯一', 'type' => 'varchar', 'is_must' => '1'],
'data_type' => ['name' => 'data_type', 'title' => '存储类型', 'type' => 'set', 'is_must' => '1'],
'prop' => ['name' => 'prop', 'title' => '归属', 'type' => 'varchar', 'is_must' => '1'],
'group' => ['name' => 'group', 'title' => '分组', 'type' => 'varchar', 'is_must' => '1'],
'content' => ['name' => 'content', 'title' => '内容', 'type' => 'varchar', 'is_must' => '1'],
'remark' => ['name' => 'remark', 'title' => '说明', 'type' => 'varchar', 'is_must' => '1'],
'sort' => ['name' => 'sort', 'title' => '排序', 'type' => 'int', 'is_must' => '1'],
'status' => ['name' => 'status', 'title' => '状态', 'type' => 'tinyint', 'is_must' => '1'],
];
}