linyao
5 years ago
42 changed files with 6513 additions and 0 deletions
-
1common/models/CategorySearch.php
-
7console/config/main-local.php
-
3console/config/params-local.php
-
3console/config/test-local.php
-
42console/migrations/m191111_080318_create_table_shop_category.php
-
39console/migrations/m191111_081842_create_table_category.php
-
36console/migrations/m191111_082739_create_table_attribute.php
-
35console/migrations/m191111_083808_create_table_goods_attr.php
-
33console/migrations/m191111_084452_create_table_brand.php
-
27console/migrations/m191111_095158_create_table_goods.php
-
27console/migrations/m191111_100540_create_table_goods_sku.php
-
36console/migrations/m191111_100639_create_table_supplier.php
-
35console/migrations/m191111_100958_create_table_filter_attr.php
-
27console/migrations/m191111_101658_create_table_area.php
-
27console/migrations/m191111_102644_create_table_province.php
-
27console/migrations/m191111_102730_create_table_city.php
-
38console/migrations/m191111_102925_create_table_cart.php
-
39console/migrations/m191111_112559_create_table_address.php
-
45console/migrations/m191111_113455_create_table_after_sale.php
-
36console/migrations/m191112_005106_create_table_search_history.php
-
33console/migrations/m191112_005545_create_table_collection.php
-
36console/migrations/m191112_005702_create_table_comment.php
-
54console/migrations/m191112_010421_create_table_order.php
-
39console/migrations/m191112_011517_create_table_order_goods.php
-
37console/migrations/m191112_012449_create_table_taking_site.php
-
43console/migrations/m191112_014508_create_table_express_template.php
-
38console/migrations/m191112_015939_create_table_delivery.php
-
39console/migrations/m191112_020830_create_table_payment_log.php
-
42console/migrations/m191112_021528_create_table_refund_log.php
-
39console/migrations/m191112_022131_create_table_file.php
-
36console/migrations/m191112_022532_create_table_tem_file.php
-
3220console/migrations/sql/area.sql
-
376console/migrations/sql/city.sql
-
37console/migrations/sql/goods.sql
-
24console/migrations/sql/goods_sku.sql
-
65console/migrations/sql/province.sql
-
1console/runtime/cache/78/78875b7ec7cc99c38ccf554e3f6c7c03.bin
-
1console/runtime/cache/7b/7b9a9a68e4033b70bf90cdb33855ff0b.bin
-
1console/runtime/cache/8e/8eeecaa3a0c1c655644fabfa7b2dbbed.bin
-
1console/runtime/cache/f7/f7f58169d00e6c254088ed2d474cdd9b.bin
-
1788console/runtime/logs/app.log
-
0datadictionary.md
@ -0,0 +1,7 @@ |
|||||
|
<?php |
||||
|
return [ |
||||
|
'bootstrap' => ['gii'], |
||||
|
'modules' => [ |
||||
|
'gii' => 'yii\gii\Module', |
||||
|
], |
||||
|
]; |
@ -0,0 +1,3 @@ |
|||||
|
<?php |
||||
|
return [ |
||||
|
]; |
@ -0,0 +1,3 @@ |
|||||
|
<?php |
||||
|
return [ |
||||
|
]; |
@ -0,0 +1,42 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_080318_create_table_shop_category |
||||
|
*/ |
||||
|
class m191111_080318_create_table_shop_category extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="前端商品类别表"'; |
||||
|
$this->createTable('ats_shop_category', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(60)->defaultValue(null)->comment('类别名称'), |
||||
|
'pid'=>$this->integer(11)->defaultValue(null)->comment('父级id'), |
||||
|
'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), |
||||
|
'keywords'=>$this->string(100)->defaultValue(null)->comment('关键字'), |
||||
|
'desc'=>$this->string(255)->defaultValue(null)->comment('描述'), |
||||
|
'sort_order'=>$this->smallInteger(3)->defaultValue(null)->comment('排序'), |
||||
|
'icon_type'=>$this->tinyInteger(1)->defaultValue(null)->comment('图标类型'), |
||||
|
'icon'=>$this->string(64)->defaultValue(null)->comment('图标'), |
||||
|
'filter_attr'=>$this->text()->comment('筛选属性'), |
||||
|
'is_show'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否显示,1为不显示'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('kcs_tags_relation_goods'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_081842_create_table_category |
||||
|
*/ |
||||
|
class m191111_081842_create_table_category extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="后台商品类别表"'; |
||||
|
$this->createTable('ats_category', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(60)->defaultValue(null)->comment('类别名称'), |
||||
|
'pid'=>$this->integer(11)->defaultValue(null)->comment('父级id'), |
||||
|
'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), |
||||
|
'sort_order'=>$this->smallInteger(3)->defaultValue(null)->comment('排序'), |
||||
|
'icon_type'=>$this->tinyInteger(1)->defaultValue(null)->comment('图标类型'), |
||||
|
'icon'=>$this->string(64)->defaultValue(null)->comment('图标'), |
||||
|
'is_show'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否显示,1为不显示'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_category'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_082739_create_table_attribute |
||||
|
*/ |
||||
|
class m191111_082739_create_table_attribute extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="属性表"'; |
||||
|
$this->createTable('ats_attribute', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(50)->defaultValue(null)->comment('属性名'), |
||||
|
'value'=>$this->text()->comment('属性值'), |
||||
|
'type'=>$this->smallInteger(2)->defaultValue(null)->comment('类型'), |
||||
|
'sort_order'=>$this->smallInteger(3)->defaultValue(null)->comment('排序'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_attribute'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_083808_create_table_goods_attr |
||||
|
*/ |
||||
|
class m191111_083808_create_table_goods_attr extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="商品属性表"'; |
||||
|
$this->createTable('ats_goods_attr', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'goods_id'=>$this->integer(11)->defaultValue(null)->comment('商品id'), |
||||
|
'attr_id'=>$this->integer(11)->defaultValue(null)->comment('属性id'), |
||||
|
'attr_value'=>$this->string(50)->defaultValue(null)->comment('属性名'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_goods_attr'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_084452_create_table_brand |
||||
|
*/ |
||||
|
class m191111_084452_create_table_brand extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="品牌表"'; |
||||
|
$this->createTable('ats_brand', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(50)->defaultValue(null)->comment('品牌名'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_brand'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_095158_create_table_goods |
||||
|
*/ |
||||
|
class m191111_095158_create_table_goods extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$sql = file_get_contents(__DIR__."/sql/goods.sql"); |
||||
|
$this->execute($sql); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable("ats_goods"); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_100540_create_table_goods_sku |
||||
|
*/ |
||||
|
class m191111_100540_create_table_goods_sku extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$sql = file_get_contents(__DIR__."/sql/goods_sku.sql"); |
||||
|
$this->execute($sql); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable("ats_goods_sku"); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_100639_create_table_supplier |
||||
|
*/ |
||||
|
class m191111_100639_create_table_supplier extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="供应商表"'; |
||||
|
$this->createTable('ats_supplier', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(50)->defaultValue(null)->comment('供应商名称'), |
||||
|
'full_name'=>$this->string(50)->defaultValue(null)->comment('供应商全称'), |
||||
|
'phone'=>$this->string(20)->defaultValue(null)->comment('手机号码'), |
||||
|
'address'=>$this->string(50)->defaultValue(null)->comment('地址'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_supplier'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_100958_create_table_filter_attr |
||||
|
*/ |
||||
|
class m191111_100958_create_table_filter_attr extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="筛选属性表"'; |
||||
|
$this->createTable('ats_filter_attr', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'goods_id'=>$this->integer(11)->defaultValue(null)->comment('商品id'), |
||||
|
'attr_id'=>$this->integer(11)->defaultValue(null)->comment('属性id'), |
||||
|
'attr_value'=>$this->string(50)->defaultValue(null)->comment('属性值'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_filter_attr'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_101658_create_table_area |
||||
|
*/ |
||||
|
class m191111_101658_create_table_area extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$sql = file_get_contents(__DIR__."/sql/area.sql"); |
||||
|
$this->execute($sql); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable("area"); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_102644_create_table_province |
||||
|
*/ |
||||
|
class m191111_102644_create_table_province extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$sql = file_get_contents(__DIR__."/sql/province.sql"); |
||||
|
$this->execute($sql); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable("province"); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_102730_create_table_city |
||||
|
*/ |
||||
|
class m191111_102730_create_table_city extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$sql = file_get_contents(__DIR__."/sql/city.sql"); |
||||
|
$this->execute($sql); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable("city"); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_102925_create_table_cart |
||||
|
*/ |
||||
|
class m191111_102925_create_table_cart extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="购物车表"'; |
||||
|
$this->createTable('ats_cart', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'goods_id'=>$this->integer(11)->defaultValue(null)->comment('商品id'), |
||||
|
'goods_name'=>$this->string(120)->defaultValue(null)->comment('商品名称'), |
||||
|
'goods_img'=>$this->integer(11)->defaultValue(null)->comment('商品图片'), |
||||
|
'goods_price'=>$this->integer(20)->defaultValue(null)->comment('商品售价'), |
||||
|
'sku_id'=>$this->integer(11)->defaultValue(null)->comment('商品sku的id'), |
||||
|
'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_cart'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_112559_create_table_address |
||||
|
*/ |
||||
|
class m191111_112559_create_table_address extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="地址表"'; |
||||
|
$this->createTable('ats_address', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'consignee'=>$this->string(20)->defaultValue(null)->comment('收件人'), |
||||
|
'phone'=>$this->string(20)->defaultValue(null)->comment('电话'), |
||||
|
'province'=>$this->string(10)->defaultValue(null)->comment('省份'), |
||||
|
'city'=>$this->string(10)->defaultValue(null)->comment('城市'), |
||||
|
'area'=>$this->string(10)->defaultValue(null)->comment('区域'), |
||||
|
'address'=>$this->text()->comment('详细地址'), |
||||
|
'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态,0-默认值 1-默认地址'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_address'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191111_113455_create_table_after_sale |
||||
|
*/ |
||||
|
class m191111_113455_create_table_after_sale extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="售后表"'; |
||||
|
$this->createTable('ats_after_sale', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'operator_id'=>$this->integer(11)->defaultValue(null)->comment('操作者'), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), |
||||
|
'after_sale_sn'=>$this->string(64)->defaultValue(null)->comment('售后单号'), |
||||
|
'order_goods_id'=>$this->integer(11)->defaultValue(null)->comment('订单商品id'), |
||||
|
'count'=>$this->integer(11)->defaultValue(null)->comment('退换货的商品数量'), |
||||
|
'amount'=>$this->integer(20)->defaultValue(null)->comment('退货时实际退的金额'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), |
||||
|
'reason'=>$this->smallInteger(2)->defaultValue(0)->comment('退换货理由'), |
||||
|
'description'=>$this->text()->comment('描述'), |
||||
|
'take_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('用户发货物流单号'), |
||||
|
'send_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('换货商家发货的物流单号'), |
||||
|
'remarks'=>$this->text()->comment('店家备注'), |
||||
|
'applyed_at'=>$this->integer(11)->defaultValue(null)->comment('申请时间'), |
||||
|
'dealed_at'=>$this->integer(11)->defaultValue(null)->comment('处理时间'), |
||||
|
'finished_at'=>$this->integer(11)->defaultValue(null)->comment('完成时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_after_sale'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_005106_create_table_search_history |
||||
|
*/ |
||||
|
class m191112_005106_create_table_search_history extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="搜索记录表"'; |
||||
|
$this->createTable('ats_search_history', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'keyword'=>$this->string(255)->defaultValue(null)->comment('关键字'), |
||||
|
'count'=>$this->integer(10)->defaultValue(null)->comment('次数'), |
||||
|
'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_search_history'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_005545_create_table_collection |
||||
|
*/ |
||||
|
class m191112_005545_create_table_collection extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="收藏表"'; |
||||
|
$this->createTable('ats_collection', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'goods_id'=>$this->integer(11)->defaultValue(null)->comment('商品id'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_collection'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_005702_create_table_comment |
||||
|
*/ |
||||
|
class m191112_005702_create_table_comment extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="评论记录表"'; |
||||
|
$this->createTable('ats_comment', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'order_goods_id'=>$this->integer(11)->defaultValue(null)->comment('订单详情商品id'), |
||||
|
'star'=>$this->integer(11)->defaultValue(null)->comment('星级'), |
||||
|
'content'=>$this->text()->comment('评论内容'), |
||||
|
'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态:1为显示,0为不显示'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_comment'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_010421_create_table_order |
||||
|
*/ |
||||
|
class m191112_010421_create_table_order extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="订单表"'; |
||||
|
$this->createTable('ats_order', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('用户id'), |
||||
|
'order_sn'=>$this->string(64)->defaultValue(null)->comment('订单号'), |
||||
|
'invoice_id'=>$this->string(64)->defaultValue(null)->comment('发票单号'), |
||||
|
'status'=>$this->tinyInteger(2)->defaultValue(0)->comment('状态'), |
||||
|
'type'=>$this->tinyInteger(2)->defaultValue(0)->comment('类型'), |
||||
|
'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), |
||||
|
'goods_amount'=>$this->integer(20)->defaultValue(null)->comment('商品金额'), |
||||
|
'shipping_amount'=>$this->integer(20)->defaultValue(null)->comment('物流金额'), |
||||
|
'shipping_type'=>$this->integer(11)->defaultValue(null)->comment('物流类型'), |
||||
|
'consignee'=>$this->string(20)->defaultValue(null)->comment('收件人'), |
||||
|
'phone'=>$this->string(20)->defaultValue(null)->comment('手机号码'), |
||||
|
'province'=>$this->string(10)->defaultValue(null)->comment('省份'), |
||||
|
'city'=>$this->string(10)->defaultValue(null)->comment('城市'), |
||||
|
'area'=>$this->string(10)->defaultValue(null)->comment('区域'), |
||||
|
'taking_site'=>$this->integer(11)->defaultValue(null)->comment('自提点'), |
||||
|
'pay_type'=>$this->integer(11)->defaultValue(null)->comment('支付方式'), |
||||
|
'pay_at'=>$this->integer(11)->defaultValue(null)->comment('支付时间'), |
||||
|
'payment_sn'=>$this->string(120)->defaultValue(null)->comment('付款单号'), |
||||
|
'payment_amount'=>$this->integer(20)->defaultValue(null)->comment('支付金额'), |
||||
|
'receivables'=>$this->integer(20)->defaultValue(null)->comment('应收款'), |
||||
|
'remarks'=>$this->string(255)->defaultValue(null)->comment('备注'), |
||||
|
'discount_amount'=>$this->integer(20)->defaultValue(null)->comment('折扣金额'), |
||||
|
'discount_decription'=>$this->text()->comment('折扣说明'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_order'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_011517_create_table_order_goods |
||||
|
*/ |
||||
|
class m191112_011517_create_table_order_goods extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="订单商品表"'; |
||||
|
$this->createTable('ats_order_goods', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), |
||||
|
'goods_id'=>$this->integer(11)->defaultValue(null)->comment('商品id'), |
||||
|
'goods_img'=>$this->integer(11)->defaultValue(null)->comment('商品图片'), |
||||
|
'goods_name'=>$this->string(120)->defaultValue(null)->comment('商品名称'), |
||||
|
'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), |
||||
|
'sku_value'=>$this->string(120)->defaultValue(null)->comment('商品sku'), |
||||
|
'price'=>$this->integer(20)->defaultValue(null)->comment('销售价'), |
||||
|
'market_price'=>$this->integer(20)->defaultValue(null)->comment('市场价'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_order_goods'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_012449_create_table_taking_site |
||||
|
*/ |
||||
|
class m191112_012449_create_table_taking_site extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="自提地点表"'; |
||||
|
$this->createTable('ats_taking_site', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(120)->defaultValue(null)->comment('名称'), |
||||
|
'province'=>$this->string(10)->defaultValue(null)->comment('省份'), |
||||
|
'city'=>$this->string(10)->defaultValue(null)->comment('城市'), |
||||
|
'area'=>$this->string(10)->defaultValue(null)->comment('区域'), |
||||
|
'address'=>$this->text()->comment('地址'), |
||||
|
'is_default'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否为默认,1为默认'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_taking_site'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_014508_create_table_express_template |
||||
|
*/ |
||||
|
class m191112_014508_create_table_express_template extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="配送情况设置表"'; |
||||
|
$this->createTable('ats_express_template', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'name'=>$this->string(255)->defaultValue(null)->comment('名称'), |
||||
|
'province'=>$this->text()->comment('省份'), |
||||
|
'city'=>$this->text()->comment('城市'), |
||||
|
'area'=>$this->text()->comment('区域'), |
||||
|
'billing_type'=>$this->tinyInteger(1)->defaultValue(0)->comment('账单类型'), |
||||
|
'extra_weight_type'=>$this->tinyInteger(2)->defaultValue(0)->comment('续重重量类型'), |
||||
|
'exemption_type'=>$this->tinyInteger(1)->defaultValue(0)->comment('包邮类型'), |
||||
|
'basic_price'=>$this->integer(20)->defaultValue(null)->comment('基本运费'), |
||||
|
'extra_price'=>$this->integer(20)->defaultValue(null)->comment('续重运费'), |
||||
|
'exemption_amount'=>$this->integer(20)->defaultValue(null)->comment('包邮金额'), |
||||
|
'support_taking'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否支持自提,1为不支持'), |
||||
|
'taking_site'=>$this->text()->comment('自提地点'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_express_template'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_015939_create_table_delivery |
||||
|
*/ |
||||
|
class m191112_015939_create_table_delivery extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="物流表"'; |
||||
|
$this->createTable('ats_delivery', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), |
||||
|
'shipping_name'=>$this->string(50)->defaultValue(null)->comment('货流名称'), |
||||
|
'shipping_id'=>$this->string(10)->defaultValue(null)->comment('运货单位'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), |
||||
|
'goods'=>$this->text()->comment('商品'), |
||||
|
'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态'), |
||||
|
'decription'=>$this->text()->comment('描述'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_delivery'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_020830_create_table_payment_log |
||||
|
*/ |
||||
|
class m191112_020830_create_table_payment_log extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="支付记录表"'; |
||||
|
$this->createTable('ats_payment_log', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), |
||||
|
'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), |
||||
|
'mch_id'=>$this->string(64)->defaultValue(null)->comment('商户号'), |
||||
|
'order_amount'=>$this->integer(20)->defaultValue(null)->comment('订单金额'), |
||||
|
'payment_amount'=>$this->integer(20)->defaultValue(null)->comment('支付金额'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(null)->comment('类型'), |
||||
|
'status'=>$this->tinyInteger(1)->defaultValue(null)->comment('状态'), |
||||
|
'refund_account'=>$this->string(64)->defaultValue(null)->comment('退款账户'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_payment_log'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_021528_create_table_refund_log |
||||
|
*/ |
||||
|
class m191112_021528_create_table_refund_log extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="退款记录表"'; |
||||
|
$this->createTable('ats_refund_log', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), |
||||
|
'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), |
||||
|
'reason'=>$this->smallInteger(2)->defaultValue(null)->comment('理由'), |
||||
|
'order_amount'=>$this->integer(20)->defaultValue(null)->comment('订单金额'), |
||||
|
'refund_amount'=>$this->integer(20)->defaultValue(null)->comment('退款金额'), |
||||
|
'refunded_amount'=>$this->integer(20)->defaultValue(null)->comment('已退款金额'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), |
||||
|
'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态'), |
||||
|
'refund_account'=>$this->string(64)->defaultValue(null)->comment('退款账户'), |
||||
|
'operator_id'=>$this->integer(11)->defaultValue(null)->comment('操作者'), |
||||
|
'applyed_at'=>$this->integer(11)->defaultValue(null)->comment('申请时间'), |
||||
|
'confirmed_at'=>$this->integer(11)->defaultValue(null)->comment('确认时间'), |
||||
|
'finished_at'=>$this->integer(11)->defaultValue(null)->comment('完成时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_refund_log'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_022131_create_table_file |
||||
|
*/ |
||||
|
class m191112_022131_create_table_file extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="文件表"'; |
||||
|
$this->createTable('ats_file', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'pid'=>$this->integer(11)->defaultValue(null)->comment('父级id'), |
||||
|
'name'=>$this->string(255)->defaultValue(null)->comment('名称'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), |
||||
|
'own_type'=>$this->tinyInteger(1)->defaultValue(0)->comment('拥有者类型'), |
||||
|
'own_id'=>$this->integer(11)->defaultValue(null)->comment('拥有者id'), |
||||
|
'alias'=>$this->string(50)->defaultValue(null)->comment('别名'), |
||||
|
'path'=>$this->string(255)->defaultValue(null)->comment('地址'), |
||||
|
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_file'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use yii\db\Migration; |
||||
|
|
||||
|
/** |
||||
|
* Class m191112_022532_create_table_tem_file |
||||
|
*/ |
||||
|
class m191112_022532_create_table_tem_file extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function up() |
||||
|
{ |
||||
|
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="临时文件表"'; |
||||
|
$this->createTable('ats_tem_file', [ |
||||
|
'id' => $this->primaryKey(), |
||||
|
'user_id'=>$this->integer(11)->defaultValue(null)->comment('父级id'), |
||||
|
'name'=>$this->string(255)->defaultValue(null)->comment('名称'), |
||||
|
'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), |
||||
|
'alias'=>$this->string(50)->defaultValue(null)->comment('别名'), |
||||
|
'path'=>$this->string(255)->defaultValue(null)->comment('地址'), |
||||
|
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), |
||||
|
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), |
||||
|
],$tableOptions); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* {@inheritdoc} |
||||
|
*/ |
||||
|
public function down() |
||||
|
{ |
||||
|
$this->dropTable('ats_tem_file'); |
||||
|
return true; |
||||
|
} |
||||
|
} |
3220
console/migrations/sql/area.sql
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,376 @@ |
|||||
|
/* |
||||
|
Navicat MySQL Data Transfer |
||||
|
|
||||
|
Source Server : phpstudy |
||||
|
Source Server Version : 50553 |
||||
|
Source Host : localhost:3306 |
||||
|
Source Database : kcshop |
||||
|
|
||||
|
Target Server Type : MYSQL |
||||
|
Target Server Version : 50553 |
||||
|
File Encoding : 65001 |
||||
|
|
||||
|
Date: 2018-05-24 09:32:55 |
||||
|
*/ |
||||
|
|
||||
|
SET FOREIGN_KEY_CHECKS=0; |
||||
|
|
||||
|
-- ---------------------------- |
||||
|
-- Table structure for city |
||||
|
-- ---------------------------- |
||||
|
DROP TABLE IF EXISTS `city`; |
||||
|
CREATE TABLE `city` ( |
||||
|
`id` int(11) NOT NULL AUTO_INCREMENT, |
||||
|
`city_id` int(8) DEFAULT NULL, |
||||
|
`name` varchar(32) DEFAULT NULL, |
||||
|
`province_id` int(8) DEFAULT NULL, |
||||
|
PRIMARY KEY (`id`) |
||||
|
) ENGINE=InnoDB AUTO_INCREMENT=345 DEFAULT CHARSET=utf8; |
||||
|
|
||||
|
-- ---------------------------- |
||||
|
-- Records of city |
||||
|
-- ---------------------------- |
||||
|
INSERT INTO `city` VALUES ('1', '110100', '市辖区', '110000'); |
||||
|
INSERT INTO `city` VALUES ('2', '120100', '市辖区', '120000'); |
||||
|
INSERT INTO `city` VALUES ('3', '130100', '石家庄市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('4', '130200', '唐山市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('5', '130300', '秦皇岛市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('6', '130400', '邯郸市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('7', '130500', '邢台市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('8', '130600', '保定市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('9', '130700', '张家口市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('10', '130800', '承德市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('11', '130900', '沧州市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('12', '131000', '廊坊市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('13', '131100', '衡水市', '130000'); |
||||
|
INSERT INTO `city` VALUES ('14', '139000', '省直辖县级行政区划', '130000'); |
||||
|
INSERT INTO `city` VALUES ('15', '140100', '太原市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('16', '140200', '大同市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('17', '140300', '阳泉市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('18', '140400', '长治市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('19', '140500', '晋城市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('20', '140600', '朔州市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('21', '140700', '晋中市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('22', '140800', '运城市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('23', '140900', '忻州市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('24', '141000', '临汾市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('25', '141100', '吕梁市', '140000'); |
||||
|
INSERT INTO `city` VALUES ('26', '150100', '呼和浩特市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('27', '150200', '包头市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('28', '150300', '乌海市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('29', '150400', '赤峰市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('30', '150500', '通辽市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('31', '150600', '鄂尔多斯市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('32', '150700', '呼伦贝尔市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('33', '150800', '巴彦淖尔市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('34', '150900', '乌兰察布市', '150000'); |
||||
|
INSERT INTO `city` VALUES ('35', '152200', '兴安盟', '150000'); |
||||
|
INSERT INTO `city` VALUES ('36', '152500', '锡林郭勒盟', '150000'); |
||||
|
INSERT INTO `city` VALUES ('37', '152900', '阿拉善盟', '150000'); |
||||
|
INSERT INTO `city` VALUES ('38', '210100', '沈阳市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('39', '210200', '大连市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('40', '210300', '鞍山市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('41', '210400', '抚顺市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('42', '210500', '本溪市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('43', '210600', '丹东市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('44', '210700', '锦州市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('45', '210800', '营口市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('46', '210900', '阜新市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('47', '211000', '辽阳市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('48', '211100', '盘锦市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('49', '211200', '铁岭市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('50', '211300', '朝阳市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('51', '211400', '葫芦岛市', '210000'); |
||||
|
INSERT INTO `city` VALUES ('52', '220100', '长春市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('53', '220200', '吉林市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('54', '220300', '四平市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('55', '220400', '辽源市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('56', '220500', '通化市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('57', '220600', '白山市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('58', '220700', '松原市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('59', '220800', '白城市', '220000'); |
||||
|
INSERT INTO `city` VALUES ('60', '222400', '延边朝鲜族自治州', '220000'); |
||||
|
INSERT INTO `city` VALUES ('61', '230100', '哈尔滨市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('62', '230200', '齐齐哈尔市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('63', '230300', '鸡西市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('64', '230400', '鹤岗市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('65', '230500', '双鸭山市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('66', '230600', '大庆市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('67', '230700', '伊春市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('68', '230800', '佳木斯市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('69', '230900', '七台河市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('70', '231000', '牡丹江市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('71', '231100', '黑河市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('72', '231200', '绥化市', '230000'); |
||||
|
INSERT INTO `city` VALUES ('73', '232700', '大兴安岭地区', '230000'); |
||||
|
INSERT INTO `city` VALUES ('74', '310100', '市辖区', '310000'); |
||||
|
INSERT INTO `city` VALUES ('75', '320100', '南京市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('76', '320200', '无锡市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('77', '320300', '徐州市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('78', '320400', '常州市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('79', '320500', '苏州市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('80', '320600', '南通市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('81', '320700', '连云港市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('82', '320800', '淮安市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('83', '320900', '盐城市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('84', '321000', '扬州市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('85', '321100', '镇江市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('86', '321200', '泰州市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('87', '321300', '宿迁市', '320000'); |
||||
|
INSERT INTO `city` VALUES ('88', '330100', '杭州市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('89', '330200', '宁波市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('90', '330300', '温州市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('91', '330400', '嘉兴市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('92', '330500', '湖州市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('93', '330600', '绍兴市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('94', '330700', '金华市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('95', '330800', '衢州市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('96', '330900', '舟山市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('97', '331000', '台州市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('98', '331100', '丽水市', '330000'); |
||||
|
INSERT INTO `city` VALUES ('99', '340100', '合肥市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('100', '340200', '芜湖市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('101', '340300', '蚌埠市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('102', '340400', '淮南市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('103', '340500', '马鞍山市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('104', '340600', '淮北市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('105', '340700', '铜陵市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('106', '340800', '安庆市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('107', '341000', '黄山市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('108', '341100', '滁州市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('109', '341200', '阜阳市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('110', '341300', '宿州市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('111', '341500', '六安市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('112', '341600', '亳州市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('113', '341700', '池州市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('114', '341800', '宣城市', '340000'); |
||||
|
INSERT INTO `city` VALUES ('115', '350100', '福州市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('116', '350200', '厦门市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('117', '350300', '莆田市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('118', '350400', '三明市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('119', '350500', '泉州市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('120', '350600', '漳州市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('121', '350700', '南平市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('122', '350800', '龙岩市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('123', '350900', '宁德市', '350000'); |
||||
|
INSERT INTO `city` VALUES ('124', '360100', '南昌市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('125', '360200', '景德镇市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('126', '360300', '萍乡市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('127', '360400', '九江市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('128', '360500', '新余市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('129', '360600', '鹰潭市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('130', '360700', '赣州市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('131', '360800', '吉安市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('132', '360900', '宜春市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('133', '361000', '抚州市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('134', '361100', '上饶市', '360000'); |
||||
|
INSERT INTO `city` VALUES ('135', '370100', '济南市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('136', '370200', '青岛市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('137', '370300', '淄博市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('138', '370400', '枣庄市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('139', '370500', '东营市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('140', '370600', '烟台市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('141', '370700', '潍坊市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('142', '370800', '济宁市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('143', '370900', '泰安市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('144', '371000', '威海市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('145', '371100', '日照市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('146', '371200', '莱芜市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('147', '371300', '临沂市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('148', '371400', '德州市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('149', '371500', '聊城市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('150', '371600', '滨州市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('151', '371700', '菏泽市', '370000'); |
||||
|
INSERT INTO `city` VALUES ('152', '410100', '郑州市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('153', '410200', '开封市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('154', '410300', '洛阳市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('155', '410400', '平顶山市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('156', '410500', '安阳市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('157', '410600', '鹤壁市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('158', '410700', '新乡市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('159', '410800', '焦作市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('160', '410900', '濮阳市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('161', '411000', '许昌市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('162', '411100', '漯河市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('163', '411200', '三门峡市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('164', '411300', '南阳市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('165', '411400', '商丘市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('166', '411500', '信阳市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('167', '411600', '周口市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('168', '411700', '驻马店市', '410000'); |
||||
|
INSERT INTO `city` VALUES ('169', '419000', '省直辖县级行政区划', '410000'); |
||||
|
INSERT INTO `city` VALUES ('170', '420100', '武汉市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('171', '420200', '黄石市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('172', '420300', '十堰市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('173', '420500', '宜昌市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('174', '420600', '襄阳市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('175', '420700', '鄂州市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('176', '420800', '荆门市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('177', '420900', '孝感市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('178', '421000', '荆州市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('179', '421100', '黄冈市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('180', '421200', '咸宁市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('181', '421300', '随州市', '420000'); |
||||
|
INSERT INTO `city` VALUES ('182', '422800', '恩施土家族苗族自治州', '420000'); |
||||
|
INSERT INTO `city` VALUES ('183', '429000', '省直辖县级行政区划', '420000'); |
||||
|
INSERT INTO `city` VALUES ('184', '430100', '长沙市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('185', '430200', '株洲市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('186', '430300', '湘潭市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('187', '430400', '衡阳市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('188', '430500', '邵阳市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('189', '430600', '岳阳市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('190', '430700', '常德市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('191', '430800', '张家界市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('192', '430900', '益阳市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('193', '431000', '郴州市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('194', '431100', '永州市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('195', '431200', '怀化市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('196', '431300', '娄底市', '430000'); |
||||
|
INSERT INTO `city` VALUES ('197', '433100', '湘西土家族苗族自治州', '430000'); |
||||
|
INSERT INTO `city` VALUES ('198', '440100', '广州市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('199', '440200', '韶关市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('200', '440300', '深圳市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('201', '440400', '珠海市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('202', '440500', '汕头市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('203', '440600', '佛山市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('204', '440700', '江门市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('205', '440800', '湛江市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('206', '440900', '茂名市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('207', '441200', '肇庆市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('208', '441300', '惠州市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('209', '441400', '梅州市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('210', '441500', '汕尾市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('211', '441600', '河源市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('212', '441700', '阳江市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('213', '441800', '清远市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('214', '441900', '东莞市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('215', '442000', '中山市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('216', '445100', '潮州市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('217', '445200', '揭阳市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('218', '445300', '云浮市', '440000'); |
||||
|
INSERT INTO `city` VALUES ('219', '450100', '南宁市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('220', '450200', '柳州市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('221', '450300', '桂林市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('222', '450400', '梧州市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('223', '450500', '北海市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('224', '450600', '防城港市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('225', '450700', '钦州市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('226', '450800', '贵港市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('227', '450900', '玉林市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('228', '451000', '百色市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('229', '451100', '贺州市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('230', '451200', '河池市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('231', '451300', '来宾市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('232', '451400', '崇左市', '450000'); |
||||
|
INSERT INTO `city` VALUES ('233', '460100', '海口市', '460000'); |
||||
|
INSERT INTO `city` VALUES ('234', '460200', '三亚市', '460000'); |
||||
|
INSERT INTO `city` VALUES ('235', '460300', '三沙市', '460000'); |
||||
|
INSERT INTO `city` VALUES ('236', '460400', '儋州市', '460000'); |
||||
|
INSERT INTO `city` VALUES ('237', '469000', '省直辖县级行政区划', '460000'); |
||||
|
INSERT INTO `city` VALUES ('238', '500100', '市辖区', '500000'); |
||||
|
INSERT INTO `city` VALUES ('239', '500200', '县', '500000'); |
||||
|
INSERT INTO `city` VALUES ('240', '510100', '成都市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('241', '510300', '自贡市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('242', '510400', '攀枝花市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('243', '510500', '泸州市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('244', '510600', '德阳市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('245', '510700', '绵阳市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('246', '510800', '广元市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('247', '510900', '遂宁市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('248', '511000', '内江市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('249', '511100', '乐山市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('250', '511300', '南充市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('251', '511400', '眉山市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('252', '511500', '宜宾市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('253', '511600', '广安市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('254', '511700', '达州市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('255', '511800', '雅安市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('256', '511900', '巴中市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('257', '512000', '资阳市', '510000'); |
||||
|
INSERT INTO `city` VALUES ('258', '513200', '阿坝藏族羌族自治州', '510000'); |
||||
|
INSERT INTO `city` VALUES ('259', '513300', '甘孜藏族自治州', '510000'); |
||||
|
INSERT INTO `city` VALUES ('260', '513400', '凉山彝族自治州', '510000'); |
||||
|
INSERT INTO `city` VALUES ('261', '520100', '贵阳市', '520000'); |
||||
|
INSERT INTO `city` VALUES ('262', '520200', '六盘水市', '520000'); |
||||
|
INSERT INTO `city` VALUES ('263', '520300', '遵义市', '520000'); |
||||
|
INSERT INTO `city` VALUES ('264', '520400', '安顺市', '520000'); |
||||
|
INSERT INTO `city` VALUES ('265', '520500', '毕节市', '520000'); |
||||
|
INSERT INTO `city` VALUES ('266', '520600', '铜仁市', '520000'); |
||||
|
INSERT INTO `city` VALUES ('267', '522300', '黔西南布依族苗族自治州', '520000'); |
||||
|
INSERT INTO `city` VALUES ('268', '522600', '黔东南苗族侗族自治州', '520000'); |
||||
|
INSERT INTO `city` VALUES ('269', '522700', '黔南布依族苗族自治州', '520000'); |
||||
|
INSERT INTO `city` VALUES ('270', '530100', '昆明市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('271', '530300', '曲靖市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('272', '530400', '玉溪市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('273', '530500', '保山市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('274', '530600', '昭通市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('275', '530700', '丽江市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('276', '530800', '普洱市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('277', '530900', '临沧市', '530000'); |
||||
|
INSERT INTO `city` VALUES ('278', '532300', '楚雄彝族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('279', '532500', '红河哈尼族彝族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('280', '532600', '文山壮族苗族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('281', '532800', '西双版纳傣族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('282', '532900', '大理白族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('283', '533100', '德宏傣族景颇族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('284', '533300', '怒江傈僳族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('285', '533400', '迪庆藏族自治州', '530000'); |
||||
|
INSERT INTO `city` VALUES ('286', '540100', '拉萨市', '540000'); |
||||
|
INSERT INTO `city` VALUES ('287', '540200', '日喀则市', '540000'); |
||||
|
INSERT INTO `city` VALUES ('288', '540300', '昌都市', '540000'); |
||||
|
INSERT INTO `city` VALUES ('289', '540400', '林芝市', '540000'); |
||||
|
INSERT INTO `city` VALUES ('290', '540500', '山南市', '540000'); |
||||
|
INSERT INTO `city` VALUES ('291', '542400', '那曲地区', '540000'); |
||||
|
INSERT INTO `city` VALUES ('292', '542500', '阿里地区', '540000'); |
||||
|
INSERT INTO `city` VALUES ('293', '610100', '西安市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('294', '610200', '铜川市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('295', '610300', '宝鸡市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('296', '610400', '咸阳市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('297', '610500', '渭南市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('298', '610600', '延安市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('299', '610700', '汉中市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('300', '610800', '榆林市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('301', '610900', '安康市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('302', '611000', '商洛市', '610000'); |
||||
|
INSERT INTO `city` VALUES ('303', '620100', '兰州市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('304', '620200', '嘉峪关市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('305', '620300', '金昌市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('306', '620400', '白银市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('307', '620500', '天水市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('308', '620600', '武威市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('309', '620700', '张掖市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('310', '620800', '平凉市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('311', '620900', '酒泉市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('312', '621000', '庆阳市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('313', '621100', '定西市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('314', '621200', '陇南市', '620000'); |
||||
|
INSERT INTO `city` VALUES ('315', '622900', '临夏回族自治州', '620000'); |
||||
|
INSERT INTO `city` VALUES ('316', '623000', '甘南藏族自治州', '620000'); |
||||
|
INSERT INTO `city` VALUES ('317', '630100', '西宁市', '630000'); |
||||
|
INSERT INTO `city` VALUES ('318', '630200', '海东市', '630000'); |
||||
|
INSERT INTO `city` VALUES ('319', '632200', '海北藏族自治州', '630000'); |
||||
|
INSERT INTO `city` VALUES ('320', '632300', '黄南藏族自治州', '630000'); |
||||
|
INSERT INTO `city` VALUES ('321', '632500', '海南藏族自治州', '630000'); |
||||
|
INSERT INTO `city` VALUES ('322', '632600', '果洛藏族自治州', '630000'); |
||||
|
INSERT INTO `city` VALUES ('323', '632700', '玉树藏族自治州', '630000'); |
||||
|
INSERT INTO `city` VALUES ('324', '632800', '海西蒙古族藏族自治州', '630000'); |
||||
|
INSERT INTO `city` VALUES ('325', '640100', '银川市', '640000'); |
||||
|
INSERT INTO `city` VALUES ('326', '640200', '石嘴山市', '640000'); |
||||
|
INSERT INTO `city` VALUES ('327', '640300', '吴忠市', '640000'); |
||||
|
INSERT INTO `city` VALUES ('328', '640400', '固原市', '640000'); |
||||
|
INSERT INTO `city` VALUES ('329', '640500', '中卫市', '640000'); |
||||
|
INSERT INTO `city` VALUES ('330', '650100', '乌鲁木齐市', '650000'); |
||||
|
INSERT INTO `city` VALUES ('331', '650200', '克拉玛依市', '650000'); |
||||
|
INSERT INTO `city` VALUES ('332', '650400', '吐鲁番市', '650000'); |
||||
|
INSERT INTO `city` VALUES ('333', '650500', '哈密市', '650000'); |
||||
|
INSERT INTO `city` VALUES ('334', '652300', '昌吉回族自治州', '650000'); |
||||
|
INSERT INTO `city` VALUES ('335', '652700', '博尔塔拉蒙古自治州', '650000'); |
||||
|
INSERT INTO `city` VALUES ('336', '652800', '巴音郭楞蒙古自治州', '650000'); |
||||
|
INSERT INTO `city` VALUES ('337', '652900', '阿克苏地区', '650000'); |
||||
|
INSERT INTO `city` VALUES ('338', '653000', '克孜勒苏柯尔克孜自治州', '650000'); |
||||
|
INSERT INTO `city` VALUES ('339', '653100', '喀什地区', '650000'); |
||||
|
INSERT INTO `city` VALUES ('340', '653200', '和田地区', '650000'); |
||||
|
INSERT INTO `city` VALUES ('341', '654000', '伊犁哈萨克自治州', '650000'); |
||||
|
INSERT INTO `city` VALUES ('342', '654200', '塔城地区', '650000'); |
||||
|
INSERT INTO `city` VALUES ('343', '654300', '阿勒泰地区', '650000'); |
||||
|
INSERT INTO `city` VALUES ('344', '659000', '自治区直辖县级行政区划', '650000'); |
@ -0,0 +1,37 @@ |
|||||
|
DROP TABLE IF EXISTS `ats_goods`; |
||||
|
CREATE TABLE `ats_goods` ( |
||||
|
`id` int(11) NOT NULL AUTO_INCREMENT, |
||||
|
`pid` int(11) DEFAULT NULL COMMENT '父级id', |
||||
|
`cat_id` int(11) DEFAULT NULL COMMENT '后台商品类别id', |
||||
|
`brand_id` int(11) DEFAULT NULL COMMENT '品牌id', |
||||
|
`shop_cat_id` int(11) DEFAULT NULL COMMENT '前端商品类别id', |
||||
|
`name` varchar(120) DEFAULT NULL COMMENT '商品名称', |
||||
|
`sn` varchar(60) DEFAULT NULL COMMENT '商品唯一货号', |
||||
|
`code` varchar(50) DEFAULT NULL COMMENT '商品货码', |
||||
|
`supplier_id` int(11) DEFAULT NULL COMMENT '供应商id', |
||||
|
`weight` mediumint(8) DEFAULT NULL COMMENT '重量', |
||||
|
`length` mediumint(8) DEFAULT NULL COMMENT '长度', |
||||
|
`width` mediumint(8) DEFAULT NULL COMMENT '宽度', |
||||
|
`height` mediumint(8) DEFAULT NULL COMMENT '高度', |
||||
|
`diameter` mediumint(8) DEFAULT NULL COMMENT '直径', |
||||
|
`unit` varchar(16) DEFAULT NULL COMMENT '单位', |
||||
|
`sold_count` int(10) DEFAULT NULL COMMENT '已售数量', |
||||
|
`limit_count` int(10) DEFAULT NULL COMMENT '限购数量', |
||||
|
`stock` int(10) DEFAULT NULL COMMENT '库存', |
||||
|
`stock_warn` int(10) DEFAULT NULL COMMENT '库存警告', |
||||
|
`market_price` int(20) DEFAULT NULL COMMENT '市场价', |
||||
|
`price` int(20) DEFAULT NULL COMMENT '销售价', |
||||
|
`brief` varchar(255) DEFAULT NULL COMMENT '简介', |
||||
|
`description` text COMMENT '详细介绍', |
||||
|
`image` int(11) DEFAULT NULL COMMENT '图片id', |
||||
|
`model_id` int(11) DEFAULT NULL COMMENT '模型id', |
||||
|
`is_sale` tinyint(1) DEFAULT '0' COMMENT '该商品是否开放销售,1为是,0为否', |
||||
|
`sort_order` smallint(3) DEFAULT NULL COMMENT '排序', |
||||
|
`bouns_points` mediumint(8) DEFAULT NULL COMMENT '奖励积分', |
||||
|
`experience_points` mediumint(8) DEFAULT NULL COMMENT '经验值', |
||||
|
`is_delete` tinyint(1) DEFAULT '0' COMMENT '是否删除,1为已删除', |
||||
|
`express_template` int(11) DEFAULT NULL COMMENT '配送详情id', |
||||
|
`created_at` int(10) DEFAULT '0' COMMENT '创建时间', |
||||
|
`updated_at` int(10) DEFAULT '0' COMMENT '更新时间', |
||||
|
PRIMARY KEY (`id`) |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品表'; |
@ -0,0 +1,24 @@ |
|||||
|
DROP TABLE IF EXISTS `ats_goods_sku`; |
||||
|
CREATE TABLE `ats_goods_sku` ( |
||||
|
`id` int(11) NOT NULL AUTO_INCREMENT, |
||||
|
`goods_id` int(11) DEFAULT NULL COMMENT '商品id', |
||||
|
`goods_code` varchar(50) DEFAULT NULL COMMENT '商品条码', |
||||
|
`goods_sn` varchar(60) DEFAULT NULL COMMENT '商品唯一货号', |
||||
|
`goods_attr` varchar(60) DEFAULT NULL COMMENT '属性匹配', |
||||
|
`weight` mediumint(8) DEFAULT NULL COMMENT '重量', |
||||
|
`length` mediumint(8) DEFAULT NULL COMMENT '长度', |
||||
|
`width` mediumint(8) DEFAULT NULL COMMENT '宽度', |
||||
|
`height` mediumint(8) DEFAULT NULL COMMENT '高度', |
||||
|
`diameter` mediumint(8) DEFAULT NULL COMMENT '直径', |
||||
|
`sold_count` int(10) DEFAULT NULL COMMENT '已售数量', |
||||
|
`stock` int(10) DEFAULT NULL COMMENT '库存', |
||||
|
`market_price` int(20) DEFAULT NULL COMMENT '市场价', |
||||
|
`price` int(20) DEFAULT NULL COMMENT '销售价', |
||||
|
`model_id` int(11) DEFAULT NULL COMMENT '模型id', |
||||
|
`is_sale` tinyint(1) DEFAULT '0' COMMENT '该商品是否开放销售,1为是,0为否', |
||||
|
`sort_order` smallint(3) DEFAULT NULL COMMENT '排序', |
||||
|
`is_delete` tinyint(1) DEFAULT '0' COMMENT '是否删除,1为已删除', |
||||
|
`created_at` int(10) DEFAULT '0' COMMENT '创建时间', |
||||
|
`updated_at` int(10) DEFAULT '0' COMMENT '更新时间', |
||||
|
PRIMARY KEY (`id`) |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品sku表'; |
@ -0,0 +1,65 @@ |
|||||
|
/* |
||||
|
Navicat MySQL Data Transfer |
||||
|
|
||||
|
Source Server : phpstudy |
||||
|
Source Server Version : 50553 |
||||
|
Source Host : localhost:3306 |
||||
|
Source Database : kcshop |
||||
|
|
||||
|
Target Server Type : MYSQL |
||||
|
Target Server Version : 50553 |
||||
|
File Encoding : 65001 |
||||
|
|
||||
|
Date: 2018-05-24 09:32:39 |
||||
|
*/ |
||||
|
|
||||
|
SET FOREIGN_KEY_CHECKS=0; |
||||
|
|
||||
|
-- ---------------------------- |
||||
|
-- Table structure for province |
||||
|
-- ---------------------------- |
||||
|
DROP TABLE IF EXISTS `province`; |
||||
|
CREATE TABLE `province` ( |
||||
|
`id` int(11) NOT NULL AUTO_INCREMENT, |
||||
|
`name` varchar(16) DEFAULT NULL, |
||||
|
`province_id` int(8) DEFAULT NULL, |
||||
|
PRIMARY KEY (`id`) |
||||
|
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; |
||||
|
|
||||
|
-- ---------------------------- |
||||
|
-- Records of province |
||||
|
-- ---------------------------- |
||||
|
INSERT INTO `province` VALUES ('1', '北京市', '110000'); |
||||
|
INSERT INTO `province` VALUES ('2', '天津市', '120000'); |
||||
|
INSERT INTO `province` VALUES ('3', '河北省', '130000'); |
||||
|
INSERT INTO `province` VALUES ('4', '山西省', '140000'); |
||||
|
INSERT INTO `province` VALUES ('5', '内蒙古自治区', '150000'); |
||||
|
INSERT INTO `province` VALUES ('6', '辽宁省', '210000'); |
||||
|
INSERT INTO `province` VALUES ('7', '吉林省', '220000'); |
||||
|
INSERT INTO `province` VALUES ('8', '黑龙江省', '230000'); |
||||
|
INSERT INTO `province` VALUES ('9', '上海市', '310000'); |
||||
|
INSERT INTO `province` VALUES ('10', '江苏省', '320000'); |
||||
|
INSERT INTO `province` VALUES ('11', '浙江省', '330000'); |
||||
|
INSERT INTO `province` VALUES ('12', '安徽省', '340000'); |
||||
|
INSERT INTO `province` VALUES ('13', '福建省', '350000'); |
||||
|
INSERT INTO `province` VALUES ('14', '江西省', '360000'); |
||||
|
INSERT INTO `province` VALUES ('15', '山东省', '370000'); |
||||
|
INSERT INTO `province` VALUES ('16', '河南省', '410000'); |
||||
|
INSERT INTO `province` VALUES ('17', '湖北省', '420000'); |
||||
|
INSERT INTO `province` VALUES ('18', '湖南省', '430000'); |
||||
|
INSERT INTO `province` VALUES ('19', '广东省', '440000'); |
||||
|
INSERT INTO `province` VALUES ('20', '广西壮族自治区', '450000'); |
||||
|
INSERT INTO `province` VALUES ('21', '海南省', '460000'); |
||||
|
INSERT INTO `province` VALUES ('22', '重庆市', '500000'); |
||||
|
INSERT INTO `province` VALUES ('23', '四川省', '510000'); |
||||
|
INSERT INTO `province` VALUES ('24', '贵州省', '520000'); |
||||
|
INSERT INTO `province` VALUES ('25', '云南省', '530000'); |
||||
|
INSERT INTO `province` VALUES ('26', '西藏自治区', '540000'); |
||||
|
INSERT INTO `province` VALUES ('27', '陕西省', '610000'); |
||||
|
INSERT INTO `province` VALUES ('28', '甘肃省', '620000'); |
||||
|
INSERT INTO `province` VALUES ('29', '青海省', '630000'); |
||||
|
INSERT INTO `province` VALUES ('30', '宁夏回族自治区', '640000'); |
||||
|
INSERT INTO `province` VALUES ('31', '新疆维吾尔自治区', '650000'); |
||||
|
INSERT INTO `province` VALUES ('32', '台湾省', '710000'); |
||||
|
INSERT INTO `province` VALUES ('33', '香港特别行政区', '810000'); |
||||
|
INSERT INTO `province` VALUES ('34', '澳门特别行政区', '820000'); |
@ -0,0 +1 @@ |
|||||
|
a:2:{i:0;a:2:{s:6:"schema";O:18:"yii\db\TableSchema":7:{s:10:"schemaName";N;s:4:"name";s:8:"category";s:8:"fullName";s:8:"category";s:10:"primaryKey";a:1:{i:0;s:2:"id";}s:12:"sequenceName";s:0:"";s:11:"foreignKeys";a:0:{}s:7:"columns";a:8:{s:2:"id";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:2:"id";s:9:"allowNull";b:0;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:1;s:13:"autoIncrement";b:1;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:8:"cat_name";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:8:"cat_name";s:9:"allowNull";b:0;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:11:"varchar(64)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:64;s:9:"precision";i:64;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:4:"icon";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:4:"icon";s:9:"allowNull";b:1;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:11:"varchar(64)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:64;s:9:"precision";i:64;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:9:"icon_type";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:9:"icon_type";s:9:"allowNull";b:0;s:4:"type";s:7:"tinyint";s:7:"phpType";s:7:"integer";s:6:"dbType";s:10:"tinyint(1)";s:12:"defaultValue";i:1;s:10:"enumValues";N;s:4:"size";i:1;s:9:"precision";i:1;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:11:"description";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:11:"description";s:9:"allowNull";b:0;s:4:"type";s:4:"text";s:7:"phpType";s:6:"string";s:6:"dbType";s:4:"text";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";N;s:9:"precision";N;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:10:"sort_order";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:10:"sort_order";s:9:"allowNull";b:0;s:4:"type";s:8:"smallint";s:7:"phpType";s:7:"integer";s:6:"dbType";s:11:"smallint(3)";s:12:"defaultValue";i:100;s:10:"enumValues";N;s:4:"size";i:3;s:9:"precision";i:3;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:10:"created_at";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:10:"created_at";s:9:"allowNull";b:0;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";i:0;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:10:"updated_at";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:10:"updated_at";s:9:"allowNull";b:0;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";i:0;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}}}s:12:"cacheVersion";i:1;}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";s:32:"57fd6b3d39568b5f20297c7d29d10b55";s:4:"data";a:1:{s:32:"f7f58169d00e6c254088ed2d474cdd9b";s:21:"0.63865400 1573007155";}s:8:"reusable";b:0;}} |
@ -0,0 +1 @@ |
|||||
|
a:2:{i:0;a:2:{s:6:"schema";O:18:"yii\db\TableSchema":7:{s:10:"schemaName";N;s:4:"name";s:9:"migration";s:8:"fullName";s:9:"migration";s:10:"primaryKey";a:1:{i:0;s:7:"version";}s:12:"sequenceName";N;s:11:"foreignKeys";a:0:{}s:7:"columns";a:2:{s:7:"version";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:7:"version";s:9:"allowNull";b:0;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:12:"varchar(180)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:180;s:9:"precision";i:180;s:5:"scale";N;s:12:"isPrimaryKey";b:1;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:10:"apply_time";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:10:"apply_time";s:9:"allowNull";b:1;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}}}s:12:"cacheVersion";i:1;}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";s:32:"57fd6b3d39568b5f20297c7d29d10b55";s:4:"data";a:1:{s:32:"f7f58169d00e6c254088ed2d474cdd9b";s:21:"0.80105800 1573525694";}s:8:"reusable";b:0;}} |
@ -0,0 +1 @@ |
|||||
|
a:2:{i:0;a:2:{s:6:"schema";O:18:"yii\db\TableSchema":7:{s:10:"schemaName";N;s:4:"name";s:4:"user";s:8:"fullName";s:4:"user";s:10:"primaryKey";a:1:{i:0;s:2:"id";}s:12:"sequenceName";s:0:"";s:11:"foreignKeys";a:0:{}s:7:"columns";a:10:{s:2:"id";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:2:"id";s:9:"allowNull";b:0;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:1;s:13:"autoIncrement";b:1;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:8:"username";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:8:"username";s:9:"allowNull";b:0;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:12:"varchar(255)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:255;s:9:"precision";i:255;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:8:"auth_key";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:8:"auth_key";s:9:"allowNull";b:0;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:11:"varchar(32)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:32;s:9:"precision";i:32;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:13:"password_hash";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:13:"password_hash";s:9:"allowNull";b:0;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:12:"varchar(255)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:255;s:9:"precision";i:255;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:20:"password_reset_token";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:20:"password_reset_token";s:9:"allowNull";b:1;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:12:"varchar(255)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:255;s:9:"precision";i:255;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:5:"email";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:5:"email";s:9:"allowNull";b:0;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:12:"varchar(255)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:255;s:9:"precision";i:255;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:6:"status";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:6:"status";s:9:"allowNull";b:0;s:4:"type";s:8:"smallint";s:7:"phpType";s:7:"integer";s:6:"dbType";s:11:"smallint(6)";s:12:"defaultValue";i:10;s:10:"enumValues";N;s:4:"size";i:6;s:9:"precision";i:6;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:10:"created_at";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:10:"created_at";s:9:"allowNull";b:0;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:10:"updated_at";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:10:"updated_at";s:9:"allowNull";b:0;s:4:"type";s:7:"integer";s:7:"phpType";s:7:"integer";s:6:"dbType";s:7:"int(11)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:11;s:9:"precision";i:11;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}s:18:"verification_token";O:25:"yii\db\mysql\ColumnSchema":15:{s:18:"disableJsonSupport";b:0;s:4:"name";s:18:"verification_token";s:9:"allowNull";b:1;s:4:"type";s:6:"string";s:7:"phpType";s:6:"string";s:6:"dbType";s:12:"varchar(255)";s:12:"defaultValue";N;s:10:"enumValues";N;s:4:"size";i:255;s:9:"precision";i:255;s:5:"scale";N;s:12:"isPrimaryKey";b:0;s:13:"autoIncrement";b:0;s:8:"unsigned";b:0;s:7:"comment";s:0:"";}}}s:12:"cacheVersion";i:1;}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";s:32:"57fd6b3d39568b5f20297c7d29d10b55";s:4:"data";a:1:{s:32:"f7f58169d00e6c254088ed2d474cdd9b";s:21:"0.03917300 1573261771";}s:8:"reusable";b:0;}} |
@ -0,0 +1 @@ |
|||||
|
a:2:{i:0;s:21:"0.80105800 1573525694";i:1;N;} |
1788
console/runtime/logs/app.log
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue