<?php
/* 数据字典
 * 数据库 -> 表 -> 字段
 * 值：大于 10 表示不参与用户配置 , 1表示显示，0表示不显示
 */
return array(
	"meal.menu" => array(
	//用户表,sys_user
		"menu_id" => array("val" => 0,"w" => 0), //菜谱id
		"menu_sort" => array("val" => 1,"w" => 20), //菜谱id
		"menu_number" => array("val" => 0,"w" => 50), //编号
		"menu_title" => array("val" => 1,"w" => 100), //标题
		"group_name" => array("val" => 1,"w" => 100), //分组
		"menu_price" => array("val" => 1,"w" => 40), //单价
		"menu_unit" => array("val" => 0,"w" => 40), //单位
		"menu_pic" => array("val" => 0,"w" => 0), //图片
		"menu_pic_small" => array("val" => 0,"w" => 50), //图片
		"menu_group_id" => array("val" => 0,"w" => 50), //组id
		"menu_intro" => array("val" => 0,"w" => 100), //简介
		"menu_num" => array("val" => 1,"w" => 50), //默认数量
		"menu_attribute" => array("val" => 1,"w" => 80), //属性
		"menu_state" => array("val" => 1,"w" => 50), //状态
		"menu_mode" => array("val" => 1,"w" => 50), //提供模式
		"menu_tj" => array("val" => 1,"w" => 40), //是否推荐
		"menu_addtime" => array("val" => 1,"w" => 120), //添加时间
		"menu_updatetime" => array("val" => 0,"w" => 120), //更新时间
	),
	"meal.shop" => array(
	//用户表,sys_user
		"shop_id" => array("val" => 0,"w" => 0), //店铺id
		"shop_name" => array("val" => 1,"w" => 150), //店铺名称
		"shop_type" => array("val" => 0,"w" => 80), //分类
		"shop_user_id" => array("val" => 11,"w" => 50), //用户id
		"user_name" => array("val" => 1,"w" => 80), //所属用户
		"shop_area" => array("val" => 1,"w" => 150), //所在区域
		"shop_intro" => array("val" => 11,"w" => 50), //介绍
		"shop_linkname" => array("val" => 1,"w" => 50), //联系人
		"shop_linktel" => array("val" => 1,"w" => 80), //电话
		"shop_tel" => array("val" => 1,"w" => 120), //电话
		"shop_address" => array("val" => 1,"w" => 200), //店铺地址
		"shop_area_id" => array("val" => 11,"w" => 0), //地区id
		"shop_area_allid" => array("val" => 11,"w" => 0), //地区id树
		"shop_dispatch_price" => array("val" => 1,"w" => 50), //起送价格
		"shop_mode" => array("val" => 1,"w" => 60), //经营模式
		"shop_state" => array("val" => 1,"w" => 50), //状态
		"shop_addtime" => array("val" => 1,"w" => 120), //添加时间
		"shop_updatetime" => array("val" => 0,"w" => 120), //修改时间
		"shop_hits" => array("val" => 0,"w" => 80), //访问量
		"shop_sold" => array("val" => 0,"w" => 80), //总销量
	),
	"meal.dispatch" => array(
		"dispatch_id" => array("val" => 0,"w" => 0), //店铺id
		"area_name" => array("val" => 1,"w" => 120), //店铺名称
		"dispatch_price" => array("val" => 1,"w" => 120), //起送价
		"dispatch_addprice" => array("val" => 1,"w" => 120), //配送费
		"dispatch_number" => array("val" => 1,"w" => 50), //所属用户
		"dispatch_time" => array("val" => 1,"w" => 80), //添加时间
		"dispatch_smstel" => array("val" => 1,"w" => 120), //短信电话
		"dispatch_area_id" => array("val" => 13 , "w"=>0),
	),
	"meal.menu.today" => array(
		"today_id" => array("val" => 0,"w" => 0), //id
		"today_menu_id" => array("val" => 11,"w" => 50), //菜品id
		"menu_title" => array("val" => 1,"w" => 120), //菜品名称
		"menu_group_id" => array("val" => 11,"w" => 120), //所属组id
		"today_num" => array("val" => 1,"w" => 120), //数量
		"today_date" => array("val" => 11,"w" => 50), //日期
		"today_date_period" => array("val" => 11,"w" => 80), //时间段
	),
	"meal.order" => array(
	//用户表,sys_user
		"order_id" => array("val" => 1,"w" => 40), //订单自动id
		"order_shop_id" => array("val" => 0,"w" => 50), //店铺id
		"shop_name" => array("val" => 1,"w" => 120), //店名
		"order_state" => array("val" => 1,"w" => 60), //状态
		"order_isaward" => array("val" => 1,"w" => 60), //是否奖励
		"order_time" => array("val" => 1,"w" => 120), //订单时间
		"order_addtime" => array("val" => 1,"w" => 120), //添加时间
		"order_area" => array("val" => 1,"w" => 200), //楼号1
		"order_louhao1" => array("val" => 1,"w" => 200), //楼号1
		"order_company" => array("val" => 0,"w" => 100), //公司
		"order_depart" => array("val" => 0,"w" => 50), //部门
		"order_name" => array("val" => 1,"w" => 50), //姓名
		"order_sex" => array("val" => 0,"w" => 30), //性别
		"order_tel" => array("val" => 0,"w" => 80), //电话
		"order_telext" => array("val" => 0,"w" => 30), //分机号
		"order_mobile" => array("val" => 1,"w" => 80), //手机
		"order_arrive" => array("val" => 1,"w" => 80), //抵达时间
		"order_user_id" => array("val" => 11,"w" => 0), //用户id
		"user_name" => array("val" => 1,"w" => 50), //用户
		"order_ids" => array("val" => 11,"w" => 0), //订单列表
		"order_total" => array("val" => 1,"w" => 50), //消费金额
		"order_repayment" => array("val" => 1,"w" => 50), //预付款
		"order_addprice" => array("val" => 1,"w" => 50), //配送费
		"order_score_money" => array("val" => 1,"w" => 50), //消耗积分
		"order_favorable" => array("val" => 1,"w" => 50), //优惠金额
		"order_total_pay" => array("val" => 1,"w" => 50), //应付金额
		"order_pay_val" => array("val" => 1,"w"=>80),//已付金额
		"order_number" => array("val" => 0,"w" => 80), //订单号
		"order_ticket" => array("val" => 0,"w" => 50), //发票
		"order_beta" => array("val" => 0,"w" => 0), //备注
		"order_act_ids" => array("val" => 1,"w" => 200), //享受活动
	),
	"meal.checkout.no" => array(
	//未结算表
		"shop_id" => array("val" => 0,"w" => 0), //店铺id
		"shop_name" => array("val" => 1,"w" => 200), //店铺名称
		"moneytotal" => array("val" => 1,"w" => 60), //货品金额
		"moneyrepay" => array("val" => 1,"w" => 60), //预付金额
		"moneyadd" => array("val" => 1,"w" => 60), //配送金额
		"moneyfav" => array("val" => 1,"w" => 60), //优惠金额
		"moneyall" => array("val" => 1,"w" => 60), //有效金额
		"moneypay" => array("val" => 1,"w" => 60), //在线支付
		"moneyaffter" => array("val" => 1,"w" => 60), //货到付款
		"num" => array("val" => 1,"w" => 120), //订单数量
		"paynum" => array("val" => 1,"w" => 120), //在线支付数量
		"affternum" => array("val" => 1,"w" => 120), //货到付款数量
		"shop_rebate" => array("val" => 1,"w" => 60), //抽成比例
		"shop_checkout_money" => array("val" => 1,"w" => 60), //最低结款
		"money" => array("val" => 1,"w" => 60), //抽成
	),
	"meal.checkout" => array(
	//结算表
		"checkout_id" => array("val" => 1,"w" => 0), //结算id
		"checkout_shop_id" => array("val" => 0,"w" => 60), //店铺id
		"shop_name" => array("val" => 1,"w" => 200), //店铺名称
		"checkout_moneytotal" => array("val" => 1,"w" => 60), //货品金额
		"checkout_moneyrepay" => array("val" => 1,"w" => 60), //预付款
		"checkout_moneyadd" => array("val" => 1,"w" => 60), //配送费
		"checkout_moneyfav" => array("val" => 1,"w" => 60), //优惠金额
		"checkout_moneyall" => array("val" => 1,"w" => 60), //有效金额
		"checkout_moneypay" => array("val" => 1,"w" => 60), //在线支付
		"checkout_moneyaffter" => array("val" => 1,"w" => 60), //货到付款
		"checkout_num" => array("val" => 1,"w" => 60), //订单数量数
		"checkout_numpay" => array("val" => 1,"w" => 60), //在线支付数量
		"checkout_rebate" => array("val" => 1,"w" => 60), //抽成比例
		"checkout_rebate_money" => array("val" => 1,"w" => 60), //起抽金额
		"checkout_money" => array("val" => 1,"w" => 60), //抽成
		"checkout_date1" => array("val" => 1,"w" => 120), //结算日期
		"checkout_date2" => array("val" => 1,"w" => 120), //结算日期
		"checkout_addtime" => array("val" => 1,"w" => 100), //操作时间
		"checkout_user_id" => array("val" => 1,"w" => 60), //结算日期
		"checkout_beta" => array("val" => 0,"w" => 300), //备注
	),
	"meal.act" => array(
	//活动表
		"act_id" => array("val" => 0,"w" => 0), //结算id
		"act_shop_id" => array("val" => 0,"w" => 150), //店铺id
		"shop_name" => array("val" => 1,"w" => 150), //店铺名称
		"act_name" => array("val" => 1,"w" => 150), //活动名称
		"act_where" => array("val" => 0,"w" => 80), //条件
		"act_where_val" => array("val" => 0,"w" => 80), //条件值
		"act_method" => array("val" => 0,"w" => 80), //优惠
		"act_method_val" => array("val" => 0,"w" => 80), //优惠值
		"act_starttime" => array("val" => 1,"w" => 120), //开始时间
		"act_endtime" => array("val" => 1,"w" => 120), //结束时间
		"act_addtime" => array("val" => 0,"w" => 120), //添加时间
		"act_state" => array("val" => 1,"w" => 100), //状态
		"act_beta" => array("val" => 0,"w" => 200), //备注
	),
	"meal.table.reserve" => array(
		"reserve_id" => array("val" => 1,"w" => 0), //id
		"shop_name" => array("val" => 1,"w" => 150), //商家名称
		"reserve_tablename" => array("val" => 0,"w" => 80), //桌位
		"reserve_datetime" => array("val" => 1,"w" => 120), //预订时间
		"reserve_addtime" => array("val" => 0,"w" => 120), //下单时间
		"reserve_name" => array("val" => 1,"w" => 120), //联系人
		"reserve_tel" => array("val" => 1,"w" => 120), //电话
		"reserve_num" => array("val" => 1,"w" => 50), //数量
		"reserve_beta" => array("val" => 0,"w" => 200), //备注
		"reserve_state" => array("val" => 1,"w" => 100), //状态
		"reserve_deposit" => array("val" => 1,"w" => 60), //订金
		"reserve_menutime" => array("val" => 0,"w" => 120), //上菜时间
	),
);