hyperf-view/app/System/Model/SettingGenerateColumns.php

54 lines
2.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare (strict_types=1);
namespace App\System\Model;
use Builder\BaseModel;
/**
* @property int $id 主键
* @property int $table_id 所属表ID
* @property string $column_name 字段名称
* @property string $column_comment 字段注释
* @property string $column_type 字段类型
* @property int $is_pk 1 非主键 2 主键
* @property int $is_required 1 非必填 2 必填
* @property int $is_insert 1 非插入字段 2 插入字段
* @property int $is_edit 1 非编辑字段 2 编辑字段
* @property int $is_list 1 非列表显示字段 2 列表显示字段
* @property int $is_query 1 非查询字段 2 查询字段
* @property int $is_sort 1 非排序字段 2 排序字段
* @property string $query_type 查询方式 eq 等于, neq 不等于, gt 大于, lt 小于, like 范围
* @property string $view_type 页面控件text, textarea, password, select, checkbox, radio, date, upload, ma-upload封装的上传控件
* @property string $dict_type 字典类型
* @property string $allow_roles 允许查看该字段的角色
* @property string $options 字段其他设置
* @property int $sort 排序
* @property int $created_by 创建者
* @property int $updated_by 更新者
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 更新时间
* @property string $remark 备注
*/
class SettingGenerateColumns extends BaseModel
{
public const YES = 2;
public const NO = 1;
/**
* The table associated with the model.
*
* @var string
*/
protected ?string $table = 'setting_generate_columns';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected array $fillable = ['id', 'table_id', 'column_name', 'column_comment', 'column_type', 'is_pk', 'is_required', 'is_insert', 'is_edit', 'is_list', 'is_query', 'is_sort', 'query_type', 'view_type', 'dict_type', 'allow_roles', 'options', 'sort', 'created_by', 'updated_by', 'created_at', 'updated_at', 'remark'];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected array $casts = ['id' => 'integer', 'table_id' => 'integer', 'is_pk' => 'integer', 'is_required' => 'integer', 'is_insert' => 'integer', 'is_edit' => 'integer', 'is_list' => 'integer', 'is_query' => 'integer', 'is_sort' => 'integer', 'sort' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'options' => 'array'];
}