[TOC]

 array(
        'discuss_id' =>array(
            'type' => 'number',
            'required' => true,
            'comment'=> '自增id',
            'autoincrement' => true,
            'width' => 50,
            'order'=>1,
            'label' => 'id',
            'default_in_list' => true,
            'in_list' => true,
        ),
        'topic_id' =>array(
            'type' => 'number',
            // 'required' => true,
            'width' => 50,
            'order'=>2,
            'label' =>'话题id',
            'default_in_list' => true,
            'in_list' => true,
            'comment'=> '所属话题表中的id号',
        ),
        'discuss_desc' =>array(
            'type' => 'string',
            'length' => 2000,
            'filterdefault' => 'true',
            'required' => true,
            'in_list' => true,
            'default_in_list' => true,
            'searchtype' => 'has',
            'order' => 3,
            'label' => '话题讨论详情',
            'comment'=> '话题讨论详情',
        ),
        'user_id' =>array(
            'type' => 'number',
            'required' => true,
            'width' => 50,
            'order'=>4,
            'label' => '用户id',
            'default_in_list' => true,
            'in_list' => true,
            'comment'=> '用户id',
        ),
        'color_id' =>array(
            'type' => 'number',
            'required' => true,
            'width' => 50,
            'order'=>5,
            'in_list' => true,
            'comment'=> '颜色样式',
        ),
        'create_time' => array(
            'type' => 'time',
            'editable' => true,
            'in_list' => true,
            'label' => '发布时间',
            'default_in_list' => true,
            'width' => 130,
            'order'=>7,
            'default' => 0,
            'comment' => '发布时间(无需精确到秒)',
        ),
        'is_top' => array(
            'type' => 'bool',
            'default' => 0,
            'comment' => '是否置顶,0:不置顶;1:置顶',
            'editable' => true,
            'in_list' => true,
            'label' => '是否置顶',
            'default_in_list' => true,
            'width' => 40,
            'order'=>8,
        ),
        'is_hide' => array(
            'type' => 'bool',
            'default' => 0,
            'comment' => '是否列表隐藏 0:展示;1隐藏',
            'editable' => true,
            'in_list' => true,
            'label' => '是否列表隐藏',
            'default_in_list' => true,
            'width' => 40,
            'order'=>9,
        ),
        'is_robot' => array(
            'type' => 'bool',
            'default' => 0,
            'comment' => '是否系统机器人 0:不是;1是',
            'editable' => true,
            'in_list' => true,
            'label' => '是否系统机器人',
            'default_in_list' => true,
            'width' => 40,
            'order'=>10,
        ),
        'flag' => array(
            'type' => 'bool',
            'default' => 0,
            'comment' => '是否发布:0正常/1删除',
            'editable' => true,
            'width' => 40,
            'order'=>11,
        ),
    ),
    'primary' => 'discuss_id',
    'comment' => '话题讨论表',
);