PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

IcePHP框架中的快速后台中的通用CRUD功能框架(四) 表配置文件

黄舟
黄舟 原创
2023-03-04 11:06:01 793浏览

这个文件是 框架中config 方法取到的配置内容, 可用自动工具从数据库生成此配置


return Array(
'id' => Array(
'name' => 'id',
'scale' => '',
'type' => 'int',
'maxLength' => '11',
'simpleType' => 'R',
'notNull' => '1',
'primaryKey' => '1',
'autoIncrement' => '1',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '',
),
'adm_name' => Array(
'name' => 'adm_name',
'scale' => '',
'type' => 'varchar',
'maxLength' => '25',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '管理员名字',
),
'adm_pwd' => Array(
'name' => 'adm_pwd',
'scale' => '',
'type' => 'varchar',
'maxLength' => '64',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '密码',
),
'status' => Array(
'name' => 'status',
'scale' => '',
'type' => 'tinyint',
'maxLength' => '1',
'simpleType' => 'L',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '1',
'defaultValue' => '1',
'description' => '0:禁用 1:启用',
),
'sort' => Array(
'name' => 'sort',
'scale' => '',
'type' => 'int',
'maxLength' => '11',
'simpleType' => 'I',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '排序',
),
'endtime' => Array(
'name' => 'endtime',
'scale' => '',
'type' => 'varchar',
'maxLength' => '30',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '最后登陆的时间',
),
'endip' => Array(
'name' => 'endip',
'scale' => '',
'type' => 'varchar',
'maxLength' => '20',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '最后登录的ip',
),
'count' => Array(
'name' => 'count',
'scale' => '',
'type' => 'int',
'maxLength' => '11',
'simpleType' => 'I',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '登录的次数',
),
'createtime' => Array(
'name' => 'createtime',
'scale' => '',
'type' => 'varchar',
'maxLength' => '30',
'simpleType' => 'C',
'notNull' => '',
'primaryKey' => '',
'autoIncrement' => '',
'binary' => '',
'unsigned' => '',
'hasDefault' => '',
'description' => '创建的时间',
),
);

以上就是IcePHP框架中的快速后台中的通用CRUD功能框架(四) 表配置文件的内容,更多相关内容请关注PHP中文网(m.sbmmt.com)!


声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。