'小程序',
	2 => '订阅号',
	3 => '服务号',
);
return array
(
	# 表名
	'name' => 'user',
	# 显示给用户看的名称
	'lang' => '用户管理',
	'order' => 100,
	'desc' => '请将component/auth.cron放到cron中,定时获取access token',
	# 数据结构
	'struct' => array
	(
		'id' 		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> 'ID',
			'default' 	=> '',
			'desc' 		=> '',
			'match' 	=> 'is_numeric',
			'search'	=> 'order',
			'list'		=> true,
		),
		'project_id'		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> '项目',
			'default' 	=> '',
			'desc' 		=> '请输入项目',
			'match' 	=> 'is_numeric',
		),
		'oauth_id'		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> 'oauth',
			'default' 	=> '',
			'desc' 		=> 'oauth',
			'match' 	=> 'is_numeric',
		),
		'name'		=> array
		(
			'type' 		=> 'varchar-120',
			'name' 		=> '昵称',
			'default' 	=> '',
			'desc' 		=> '昵称',
			'match' 	=> 'is_string',
			'search'	=> 'fulltext',
			//'update'	=> 'text',
			'list'		=> true,
		),
		'principal_name'		=> array
		(
			'type' 		=> 'varchar-120',
			'name' 		=> '主体信息',
			'default' 	=> '',
			'desc' 		=> '主体信息',
			'match' 	=> 'is_string',
			'search'	=> 'fulltext',
			//'update'	=> 'text',
			'list'		=> true,
		),
		'pic'		=> array
		(
			'type' 		=> 'varchar-250',
			'name' 		=> '头像',
			'default' 	=> '',
			'desc' 		=> '头像',
			'match' 	=> 'is_string',
			//'search'	=> 'fulltext',
			//'update'	=> 'text',
			'list_name'	=> 'logo及二维码列表',
			//'list'		=> '" 
  "',
			'list'		=> 'Dever::load("component/user.logo", {id})',
			'modal'		=> '点此查看',
		),
		'username'		=> array
		(
			'type' 		=> 'varchar-120',
			'name' 		=> '用户名',
			'default' 	=> '',
			'desc' 		=> '用户名',
			'match' 	=> 'is_string',
			//'search'	=> 'fulltext',
			//'update'	=> 'text',
			//'list'		=> true,
		),
		'qrcode'		=> array
		(
			'type' 		=> 'varchar-250',
			'name' 		=> '二维码',
			'default' 	=> '',
			'desc' 		=> '二维码',
			'match' 	=> 'is_string',
			//'search'	=> 'fulltext',
			//'update'	=> 'text',
			//'list'		=> true,
		),
		'type'		=> array
		(
			'type' 		=> 'tinyint-11',
			'name' 		=> '类型',
			'default' 	=> '1',
			'desc' 		=> '类型',
			'match' 	=> 'is_numeric',
			//'update'	=> 'select',
			'option'	=> $type,
			//'list'		=> true,
		),
		'desc'		=> array
		(
			'type' 		=> 'varchar-120',
			'name' 		=> '小程序id',
			'default' 	=> '',
			'desc' 		=> '小程序id',
			'match' 	=> 'is_string',
			'search'	=> 'fulltext',
			'update'	=> 'text',
			'list'		=> true,
			'edit'		=> true,
		),
		'tag'		=> array
		(
			'type' 		=> 'varchar-500',
			'name' 		=> '标签',
			'default' 	=> '',
			'desc' 		=> '标签',
			'match' 	=> 'is_string',
			'search'	=> 'fulltext',
			'update'	=> 'text',
			'list'		=> true,
			'edit'		=> true,
		),
		
		'mdate'		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> '更新时间',
			'match' 	=> array('is_numeric', time()),
			'desc' 		=> '',
			'list'		=> 'date("Y-m-d H:i:s", {mdate})',
		),
		
		'state'		=> array
		(
			'type' 		=> 'tinyint-1',
			'name' 		=> '状态',
			'default' 	=> '1',
			'desc' 		=> '请选择状态',
			'match' 	=> 'is_numeric',
		),
		
		'cdate'		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> '录入时间',
			'match' 	=> array('is_numeric', time()),
			'desc' 		=> '',
			# 只有insert时才生效
			'insert'	=> true,
		),
	),
	'top' => Dever::config('base')->top,
	'manage' => array
	(
		'delete' => false,
		'insert' => false,
		'edit' => false,
	),
);
"',
			'list'		=> 'Dever::load("component/user.logo", {id})',
			'modal'		=> '点此查看',
		),
		'username'		=> array
		(
			'type' 		=> 'varchar-120',
			'name' 		=> '用户名',
			'default' 	=> '',
			'desc' 		=> '用户名',
			'match' 	=> 'is_string',
			//'search'	=> 'fulltext',
			//'update'	=> 'text',
			//'list'		=> true,
		),
		'qrcode'		=> array
		(
			'type' 		=> 'varchar-250',
			'name' 		=> '二维码',
			'default' 	=> '',
			'desc' 		=> '二维码',
			'match' 	=> 'is_string',
			//'search'	=> 'fulltext',
			//'update'	=> 'text',
			//'list'		=> true,
		),
		'type'		=> array
		(
			'type' 		=> 'tinyint-11',
			'name' 		=> '类型',
			'default' 	=> '1',
			'desc' 		=> '类型',
			'match' 	=> 'is_numeric',
			//'update'	=> 'select',
			'option'	=> $type,
			//'list'		=> true,
		),
		'desc'		=> array
		(
			'type' 		=> 'varchar-120',
			'name' 		=> '小程序id',
			'default' 	=> '',
			'desc' 		=> '小程序id',
			'match' 	=> 'is_string',
			'search'	=> 'fulltext',
			'update'	=> 'text',
			'list'		=> true,
			'edit'		=> true,
		),
		'tag'		=> array
		(
			'type' 		=> 'varchar-500',
			'name' 		=> '标签',
			'default' 	=> '',
			'desc' 		=> '标签',
			'match' 	=> 'is_string',
			'search'	=> 'fulltext',
			'update'	=> 'text',
			'list'		=> true,
			'edit'		=> true,
		),
		
		'mdate'		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> '更新时间',
			'match' 	=> array('is_numeric', time()),
			'desc' 		=> '',
			'list'		=> 'date("Y-m-d H:i:s", {mdate})',
		),
		
		'state'		=> array
		(
			'type' 		=> 'tinyint-1',
			'name' 		=> '状态',
			'default' 	=> '1',
			'desc' 		=> '请选择状态',
			'match' 	=> 'is_numeric',
		),
		
		'cdate'		=> array
		(
			'type' 		=> 'int-11',
			'name' 		=> '录入时间',
			'match' 	=> array('is_numeric', time()),
			'desc' 		=> '',
			# 只有insert时才生效
			'insert'	=> true,
		),
	),
	'top' => Dever::config('base')->top,
	'manage' => array
	(
		'delete' => false,
		'insert' => false,
		'edit' => false,
	),
);