12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079 |
- <?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' => '宽度',
- ],
- ];
|