2025-08-01 11:39:06 +08:00

1080 lines
25 KiB
PHP

<?php
return [
'address' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '详细地址',
],
'address_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'comment' => '地址ID',
],
'address_name' => [
'type' => 'varchar',
'length' => 255,
'collate' => 'utf8mb4_general_ci',
'is_null' => 0,
'comment' => '地址名称',
],
'admin_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'comment' => '管理员ID',
],
'admin_ids' => [
'type' => 'varchar',
'length' => 100,
'comment' => '管理员ID(多选)',
],
'after' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '变动后',
],
'amount' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '商品结算金额',
],
'area_id' => [
'type' => 'int',
'length' => 11,
'default' => '0,' . "\n",
'is_null' => 0,
'comment' => '详细地址',
],
'avatar' => [
'type' => 'varchar',
'length' => 255,
'is_null' => 0,
'comment' => '头像',
],
'bank_name' => [
'type' => 'varchar',
'length' => 191,
'default' => null,
'is_null' => 1,
'comment' => '银行名',
],
'before' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '变动前',
],
'bio' => [
'type' => 'varchar',
'length' => 100,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 1,
'comment' => '店铺简介',
],
'brand_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 1,
'unsigned' => 1,
'comment' => '品牌ID',
],
'buyer_id' => [
'type' => 'int',
'length' => 11,
'is_null' => 0,
'comment' => '买家',
],
'card_no' => [
'type' => 'varchar',
'length' => 191,
'default' => null,
'is_null' => 1,
'comment' => '卡号',
],
'category_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'unsigned' => 1,
'comment' => '分类ID',
],
'category_ids' => [
'type' => 'varchar',
'length' => 100,
'comment' => '分类ID(多选)',
],
'city' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '市',
],
'code' => [
'type' => 'varchar',
'length' => 60,
'default' => null,
'is_null' => 1,
'comment' => '编码',
],
'color' => [
'type' => 'varchar',
'length' => 10,
'collate' => 'utf8mb4_general_ci',
'default' => '#dbb29d',
'is_null' => 0,
'comment' => '用户背景色',
],
'comment' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'unsigned' => 1,
'comment' => '评论',
],
'comment_status' => [
'type' => 'tinyint',
'length' => 2,
'default' => '0',
'is_null' => 0,
'comment' => '评论状态',
],
'comment_id' => [
'type' => 'int',
'length' => 10,
'default' => null,
'is_null' => 1,
'comment' => '评论ID',
],
'confirmtime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '确认时间',
],
'content' => [
'type' => 'text',
'is_null' => 1,
'comment' => '内容',
],
'country' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '国家',
],
'coupon_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'comment' => '原始优惠券ID',
],
'coupon_no' => [
'type' => 'varchar',
'length' => 16,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 0,
'comment' => '优惠券编码',
],
'coupon_price' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'unsigned' => 1,
'comment' => '优惠券金额',
],
'cover' => [
'type' => 'text',
'collate' => 'utf8mb4_general_ci',
'is_null' => 1,
'comment' => '封面图',
],
'createtime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '创建时间',
],
'data' => [
'type' => 'text',
'is_null' => 0,
'comment' => '数据',
],
'date' => [
'type' => 'varchar',
'length' => 30,
'default' => null,
'is_null' => 1,
'comment' => '签到日期',
],
'dealtime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '成交时间(评论时间)',
],
'default' => [
'type' => 'enum',
'length' => [
'0',
'1',
],
'collate' => 'utf8mb4_general_ci',
'default' => '0',
'is_null' => 0,
'comment' => '默认:1=是,0=否',
],
'deletetime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '删除时间',
],
'description' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '描述',
],
'discount' => [
'type' => 'decimal',
'length' => 2,
'default' => '0.0',
'is_null' => 1,
'unsigned' => 1,
'comment' => '折扣率',
],
'discount_price' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'unsigned' => 1,
'comment' => '优惠价格',
],
'edu' => [
'type' => 'enum',
'length' => ['0', '1', '2', '3', '4', '5', '6'],
'is_null' => 1,
'comment' => '学历:0=小学文化,1=初中,2=高中,3=大专,4=本科,5=硕士,6=博士',
],
'enddate' => [
'type' => 'date',
'is_null' => 1,
'comment' => '结束日期',
],
'endtime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '结束时间',
],
'expire_day' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => 'X天过期',
],
'expire_in' => [
'type' => 'int',
'length' => 11,
'default' => null,
'is_null' => 1,
'comment' => '过期周期(s)',
],
'expire_time' => [
'type' => 'bigint',
'length' => 16,
'default' => '0',
'is_null' => 0,
'comment' => '截至日期',
],
'flag' => [
'type' => 'set',
'length' => [
'hot',
'new',
'recommend',
],
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 1,
'comment' => '标志',
],
'follow' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 1,
'comment' => '关注',
],
'goods_amount' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '商品总价',
],
'goods_id' => [
'type' => 'int',
'length' => 11,
'is_null' => 0,
'comment' => '所属产品',
],
'goods_ids' => [
'type' => 'varchar',
'length' => 1200,
'default' => null,
'is_null' => 1,
'comment' => '商品组',
],
'goods_image' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '商品图片',
],
'goods_original_amount' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '商品原价',
],
'goods_original_price' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '商品原价',
],
'goods_price' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '商品价格',
],
'goods_sku_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'unsigned' => 1,
'comment' => '订单ID',
],
'goods_sku_ids' => [
'type' => 'varchar',
'length' => 255,
'default' => 'NULL,' . "\n",
'is_null' => 1,
'comment' => '排序',
],
'goods_sku_price_id' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '商品规格',
],
'goods_sku_sn' => [
'type' => 'varchar',
'length' => 100,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 0,
'comment' => '商品编码',
],
'goods_sku_text' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '中文规格',
],
'goods_title' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '商品名称',
],
'group' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '分组',
],
'height' => [
'type' => 'int',
'length' => 5,
'default' => '0',
'is_null' => 1,
'unsigned' => 1,
'comment' => '高度',
],
'image' => [
'type' => 'varchar',
'length' => 100,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 0,
'comment' => '图片',
],
'images' => [
'type' => 'varchar',
'length' => 512,
'default' => null,
'is_null' => 1,
'comment' => '图片',
],
'invalid' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 1,
'unsigned' => 1,
'comment' => '是否失效',
],
'ip' => [
'type' => 'varchar',
'length' => 20,
'default' => null,
'is_null' => 1,
'comment' => '客户端IP',
],
'is_default' => [
'type' => 'enum',
'length' => [
'0',
'1',
],
'default' => '0',
'is_null' => 1,
'comment' => '默认',
],
'is_check' => [
'type' => 'int',
'length' => 1,
'default' => '0',
'is_null' => 1,
'comment' => '监控状态',
],
'is_nav' => [
'type' => 'tinyint',
'length' => 1,
'default' => '1',
'is_null' => 0,
'comment' => '是否导航显示',
],
'keywords' => [
'type' => 'varchar',
'length' => 100,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 0,
'comment' => '关键字',
],
'lat' => [
'type' => 'decimal',
'length' => '10,2',
'default' => null,
'is_null' => 1,
'comment' => '纬度',
],
'likes' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'unsigned' => 1,
'comment' => '收藏',
],
'logo' => [
'type' => 'varchar',
'length' => 500,
'collate' => 'utf8mb4_general_ci',
'default' => null,
'is_null' => 1,
'comment' => 'Logo',
],
'lng' => [
'type' => 'decimal',
'length' => '10,2',
'default' => null,
'is_null' => 1,
'comment' => '经度',
],
'memo' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '备注',
],
'message' => [
'type' => 'text',
'is_null' => 1,
'comment' => '消息',
],
'mobile' => [
'type' => 'varchar',
'length' => 20,
'is_null' => 0,
'comment' => '手机号',
],
'money' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '金额',
],
'name' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 0,
'comment' => '名称',
],
'nickname' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '昵称',
],
'notice' => [
'type' => 'text',
'collate' => 'utf8mb4_general_ci',
'is_null' => 1,
'comment' => '通知内容',
],
'num' => [
'type' => 'int',
'length' => 11,
'is_null' => 0,
'comment' => '数量',
],
'order_goods_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'unsigned' => 1,
'comment' => '订单商品ID',
],
'order_id' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '订单',
],
'order_money' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '订单金额',
],
'order_no' => [
'type' => 'varchar',
'length' => 18,
'collate' => 'utf8mb4_general_ci',
'is_null' => 0,
'comment' => '订单号',
],
'order_price' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'unsigned' => 1,
'comment' => '订单金额',
],
'order_sn' => [
'type' => 'varchar',
'length' => 60,
'is_null' => 0,
'comment' => '订单号',
],
'order_status' => [
'type' => 'tinyint',
'length' => 2,
'default' => '0',
'is_null' => 0,
'comment' => '订单状态',
],
'origin_price' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '原价',
],
'out_trade_no' => [
'type' => 'varchar',
'length' => 32,
'collate' => 'utf8mb4_general_ci',
'is_null' => 0,
'comment' => '交易号',
],
'pay_fee' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '实际支付金额',
],
'pay_id' => [
'type' => 'text',
'collate' => 'utf8mb4_general_ci',
'is_null' => 0,
'comment' => '支付订单号',
],
'pay_no' => [
'type' => 'varchar',
'length' => 32,
'collate' => 'utf8mb4_general_ci',
'is_null' => 0,
'comment' => '交易号',
],
'pay_price' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '支付金额',
],
'pay_state' => [
'type' => 'enum',
'length' => [
'0',
'1',
'2',
],
'collate' => 'utf8mb4_general_ci',
'default' => '0',
'is_null' => 0,
'comment' => '支付状态',
],
'pay_type' => [
'type' => 'enum',
'length' => [
'wechat',
'alipay',
'wallet',
'score',
],
'is_null' => 1,
'comment' => '支付方式:wechat=微信支付,alipay=支付宝,wallet=钱包支付,score=积分支付',
],
'payment_json' => [
'type' => 'varchar',
'length' => 2500,
'default' => null,
'is_null' => 1,
'comment' => '交易原始数据',
],
'pay_time' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '支付时间',
],
'pid' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 1,
'comment' => '上级',
],
'platform' => [
'type' => 'set',
'length' => [
'H5',
'wxOfficialAccount',
'wxMiniProgram',
'App',
'preview',
],
'is_null' => 1,
'comment' => '适用平台:H5=H5,wxOfficialAccount=微信公众号网页,wxMiniProgram=微信小程序,App=App,preview=预览',
],
'price' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '价格',
],
'province' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '省',
],
'real_name' => [
'type' => 'varchar',
'length' => 191,
'default' => null,
'is_null' => 1,
'comment' => '真实姓名',
],
'reason' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '售后原因',
],
'remark' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '备注',
],
'score' => [
'type' => 'float',
'length' => 3,
'default' => '0.0',
'is_null' => 1,
'unsigned' => 1,
'comment' => '积分',
],
'score_amount' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '积分总数',
],
'score_fee' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '积分支付数',
],
'secret' => [
'type' => 'varchar',
'length' => 255,
'collate' => 'utf8mb4_general_ci',
'default' => null,
'is_null' => 1,
'comment' => 'Secret',
],
'sex' => [
'type' => 'enum',
'length' => ['0', '1'],
'is_null' => 1,
'comment' => '性别:0=男,1=女',
],
'shop_id' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'comment' => '店铺ID',
],
'shop_name' => [
'type' => 'varchar',
'length' => 32,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 0,
'comment' => '店铺名称',
],
'sku_price_id' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '规格',
],
'sn' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '货号',
],
'spec' => [
'type' => 'enum',
'length' => [
'single',
'multi',
],
'collate' => 'utf8mb4_general_ci',
'default' => 'single',
'is_null' => 0,
'comment' => '商品规格:single=单规格,multi=多规格',
],
'startdate' => [
'type' => 'date',
'is_null' => 1,
'comment' => '开始日期',
],
'starttime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '开始时间',
],
'state' => [
'type' => 'enum',
'length' => [
'0',
'1',
],
'collate' => 'utf8mb4_general_ci',
'default' => '1',
'is_null' => 0,
'comment' => '状态:0=隐藏,1=显示',
],
'status' => [
'type' => 'varchar',
'length' => 20,
'default' => null,
'is_null' => 1,
'comment' => '状态',
],
'stock' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '库存',
],
'store_id' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '门店',
],
'store_ids' => [
'type' => 'varchar',
'length' => 255,
'is_null' => 0,
'comment' => '包含门店',
],
'subscribe' => [
'type' => 'enum',
'length' => [
'0',
'1',
],
'is_null' => 1,
'comment' => '关注状态:0=取消关注,1=已关注',
],
'subscribe_time' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '关注时间',
],
'switch' => [
'type' => 'tinyint',
'length' => 1,
'default' => '0',
'is_null' => 0,
'comment' => '开关',
],
'thumbnail' => [
'type' => 'text',
'collate' => 'utf8mb4_general_ci',
'is_null' => 1,
'comment' => '缩略图',
],
'tip' => [
'type' => 'varchar',
'length' => 100,
'default' => '',
'is_null' => 0,
'comment' => '变量描述',
],
'title' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '活动名称',
],
'total_amount' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '订单总金额',
],
'total_fee' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '支付金额',
],
'total_income' => [
'type' => 'decimal',
'length' => '10,2',
'default' => '0.00',
'is_null' => 0,
'comment' => '总收益',
],
'trade_no' => [
'type' => 'varchar',
'length' => 32,
'collate' => 'utf8mb4_general_ci',
'default' => '',
'is_null' => 1,
'comment' => '交易订单号',
],
'transaction_id' => [
'type' => 'varchar',
'length' => 60,
'default' => null,
'is_null' => 1,
'comment' => '交易单号',
],
'type' => [
'type' => 'varchar',
'length' => 20,
'default' => null,
'is_null' => 1,
'comment' => '类型',
],
'updatetime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '更新时间',
],
'url' => [
'type' => 'varchar',
'length' => 255,
'default' => null,
'is_null' => 1,
'comment' => '商品链接',
],
'user_id' => [
'type' => 'int',
'length' => 11,
'default' => '0',
'is_null' => 0,
'comment' => '会员ID',
],
'user_ids' => [
'type' => 'varchar',
'length' => 100,
'comment' => '会员ID(多选)',
],
'user_nickname' => [
'type' => 'varchar',
'length' => 50,
'default' => null,
'is_null' => 1,
'comment' => '用户昵称',
],
'user_no' => [
'type' => 'varchar',
'length' => 16,
'collate' => 'utf8mb4_general_ci',
'default' => '0',
'is_null' => 0,
'comment' => '账户号',
],
'usetime' => [
'type' => 'bigint',
'length' => 16,
'default' => null,
'is_null' => 1,
'comment' => '使用时间',
],
'uuid' => [
'type' => 'varchar',
'length' => 36,
'collate' => 'utf8mb4_general_ci',
'is_null' => 0,
'comment' => 'app唯一编码',
],
'value' => [
'type' => 'longtext',
'collate' => 'utf8mb4_general_ci',
'is_null' => 1,
'comment' => '配置:key=名称,value=值2',
],
'views' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 0,
'unsigned' => 1,
'comment' => '点击',
],
'wallet' => [
'type' => 'decimal',
'length' => '10,2',
'is_null' => 0,
'comment' => '变动金额',
],
'wallet_type' => [
'type' => 'enum',
'length' => [
'money',
'score',
],
'is_null' => 0,
'comment' => '日志类型:money=余额,score=积分',
],
'weigh' => [
'type' => 'int',
'length' => 10,
'default' => '0',
'is_null' => 1,
'comment' => '权重',
],
'weight' => [
'type' => 'int',
'length' => 11,
'default' => null,
'is_null' => 1,
'comment' => '重量(kg)',
],
'width' => [
'type' => 'int',
'length' => 5,
'default' => '0',
'is_null' => 1,
'unsigned' => 1,
'comment' => '宽度',
],
];