Files
php-official-website/src/data/schema/ey_shop_order.php
2025-12-17 10:18:58 +08:00

363 lines
7.3 KiB
PHP

<?php
return array (
'order_id' =>
array (
'name' => 'order_id',
'type' => 'int(10) unsigned',
'notnull' => false,
'default' => NULL,
'primary' => true,
'autoinc' => true,
),
'order_code' =>
array (
'name' => 'order_code',
'type' => 'varchar(20)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'users_id' =>
array (
'name' => 'users_id',
'type' => 'int(11) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'order_status' =>
array (
'name' => 'order_status',
'type' => 'tinyint(1)',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'payment_method' =>
array (
'name' => 'payment_method',
'type' => 'tinyint(1)',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'pay_time' =>
array (
'name' => 'pay_time',
'type' => 'int(11) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'pay_name' =>
array (
'name' => 'pay_name',
'type' => 'varchar(20)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'wechat_pay_type' =>
array (
'name' => 'wechat_pay_type',
'type' => 'varchar(20)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'pay_details' =>
array (
'name' => 'pay_details',
'type' => 'text',
'notnull' => false,
'default' => NULL,
'primary' => false,
'autoinc' => false,
),
'express_order' =>
array (
'name' => 'express_order',
'type' => 'varchar(32)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'express_name' =>
array (
'name' => 'express_name',
'type' => 'varchar(32)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'express_code' =>
array (
'name' => 'express_code',
'type' => 'varchar(32)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'express_time' =>
array (
'name' => 'express_time',
'type' => 'int(11)',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'consignee' =>
array (
'name' => 'consignee',
'type' => 'varchar(30)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'confirm_time' =>
array (
'name' => 'confirm_time',
'type' => 'int(11)',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'shipping_fee' =>
array (
'name' => 'shipping_fee',
'type' => 'decimal(10,2)',
'notnull' => false,
'default' => '0.00',
'primary' => false,
'autoinc' => false,
),
'order_total_amount' =>
array (
'name' => 'order_total_amount',
'type' => 'decimal(10,2)',
'notnull' => false,
'default' => '0.00',
'primary' => false,
'autoinc' => false,
),
'order_amount' =>
array (
'name' => 'order_amount',
'type' => 'decimal(10,2)',
'notnull' => false,
'default' => '0.00',
'primary' => false,
'autoinc' => false,
),
'order_total_num' =>
array (
'name' => 'order_total_num',
'type' => 'int(10)',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'country' =>
array (
'name' => 'country',
'type' => 'int(10) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'province' =>
array (
'name' => 'province',
'type' => 'int(10) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'city' =>
array (
'name' => 'city',
'type' => 'int(10) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'district' =>
array (
'name' => 'district',
'type' => 'int(10) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'address' =>
array (
'name' => 'address',
'type' => 'varchar(500)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'mobile' =>
array (
'name' => 'mobile',
'type' => 'varchar(20)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'prom_type' =>
array (
'name' => 'prom_type',
'type' => 'tinyint(1) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'virtual_delivery' =>
array (
'name' => 'virtual_delivery',
'type' => 'text',
'notnull' => false,
'default' => NULL,
'primary' => false,
'autoinc' => false,
),
'admin_note' =>
array (
'name' => 'admin_note',
'type' => 'text',
'notnull' => false,
'default' => NULL,
'primary' => false,
'autoinc' => false,
),
'is_comment' =>
array (
'name' => 'is_comment',
'type' => 'tinyint(1) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'user_note' =>
array (
'name' => 'user_note',
'type' => 'text',
'notnull' => false,
'default' => NULL,
'primary' => false,
'autoinc' => false,
),
'group' =>
array (
'name' => 'group',
'type' => 'varchar(50)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'order_md5' =>
array (
'name' => 'order_md5',
'type' => 'varchar(50)',
'notnull' => false,
'default' => '',
'primary' => false,
'autoinc' => false,
),
'order_source' =>
array (
'name' => 'order_source',
'type' => 'tinyint(3)',
'notnull' => false,
'default' => '10',
'primary' => false,
'autoinc' => false,
),
'order_source_id' =>
array (
'name' => 'order_source_id',
'type' => 'int(10)',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'lang' =>
array (
'name' => 'lang',
'type' => 'varchar(30)',
'notnull' => false,
'default' => 'cn',
'primary' => false,
'autoinc' => false,
),
'add_time' =>
array (
'name' => 'add_time',
'type' => 'int(11) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'update_time' =>
array (
'name' => 'update_time',
'type' => 'int(11) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'coupon_id' =>
array (
'name' => 'coupon_id',
'type' => 'int(11) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'use_id' =>
array (
'name' => 'use_id',
'type' => 'int(11) unsigned',
'notnull' => false,
'default' => '0',
'primary' => false,
'autoinc' => false,
),
'coupon_price' =>
array (
'name' => 'coupon_price',
'type' => 'decimal(10,2)',
'notnull' => false,
'default' => '0.00',
'primary' => false,
'autoinc' => false,
),
);