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

这个文件是 框架中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' => '创建的时间',
    ),
);
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值