mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改数据注释
This commit is contained in:
parent
d09a587f03
commit
a6709b275f
@ -7,16 +7,17 @@ use think\migration\Migrator;
|
|||||||
*/
|
*/
|
||||||
class WechatNewsArticle extends Migrator
|
class WechatNewsArticle extends Migrator
|
||||||
{
|
{
|
||||||
private $name = 'wechat_news_article';
|
|
||||||
|
|
||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
|
// 当前操作
|
||||||
|
$table = 'wechat_news_article';
|
||||||
|
|
||||||
// 存在则跳过
|
// 存在则跳过
|
||||||
if ($this->hasTable($this->name)) {
|
if ($this->hasTable($table)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($this->name, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '微信-文章',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '微信-文章',
|
||||||
])
|
])
|
||||||
->addColumn('title', 'string', ['limit' => 100, 'default' => '', 'comment' => '素材标题'])
|
->addColumn('title', 'string', ['limit' => 100, 'default' => '', 'comment' => '素材标题'])
|
||||||
|
@ -19,7 +19,7 @@ class BasePostageCompany extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-快递-公司',
|
||||||
])
|
])
|
||||||
->addColumn('name', 'string', ['limit' => 50, 'default' => '', 'comment' => '快递公司名称'])
|
->addColumn('name', 'string', ['limit' => 50, 'default' => '', 'comment' => '快递公司名称'])
|
||||||
->addColumn('code_1', 'string', ['limit' => 50, 'default' => '', 'comment' => '快递公司代码'])
|
->addColumn('code_1', 'string', ['limit' => 50, 'default' => '', 'comment' => '快递公司代码'])
|
||||||
|
@ -19,7 +19,7 @@ class BasePostageRegion extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-快递-区域',
|
||||||
])
|
])
|
||||||
->addColumn('pid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '上级PID'])
|
->addColumn('pid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '上级PID'])
|
||||||
->addColumn('first', 'string', ['limit' => 50, 'default' => '', 'comment' => '首字母'])
|
->addColumn('first', 'string', ['limit' => 50, 'default' => '', 'comment' => '首字母'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户提现数据
|
||||||
|
*/
|
||||||
class DataUserTransfer extends Migrator
|
class DataUserTransfer extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -15,7 +18,7 @@ class DataUserTransfer extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-提现',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
||||||
->addColumn('type', 'string', ['limit' => 30, 'default' => '', 'comment' => '提现方式'])
|
->addColumn('type', 'string', ['limit' => 30, 'default' => '', 'comment' => '提现方式'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户授权数据
|
||||||
|
*/
|
||||||
class DataUserToken extends Migrator
|
class DataUserToken extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUserToken extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-认证',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
||||||
->addColumn('type', 'string', ['limit' => 20, 'default' => '', 'comment' => '授权类型'])
|
->addColumn('type', 'string', ['limit' => 20, 'default' => '', 'comment' => '授权类型'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户返利数据
|
||||||
|
*/
|
||||||
class DataUserRebate extends Migrator
|
class DataUserRebate extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUserRebate extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-返利',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
||||||
->addColumn('date', 'string', ['limit' => 20, 'default' => '', 'comment' => '奖励日期'])
|
->addColumn('date', 'string', ['limit' => 20, 'default' => '', 'comment' => '奖励日期'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户支付行为数据
|
||||||
|
*/
|
||||||
class DataUserPayment extends Migrator
|
class DataUserPayment extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUserPayment extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-支付',
|
||||||
])
|
])
|
||||||
->addColumn('order_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '订单单号'])
|
->addColumn('order_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '订单单号'])
|
||||||
->addColumn('order_name', 'string', ['limit' => 255, 'default' => '', 'comment' => '订单描述'])
|
->addColumn('order_name', 'string', ['limit' => 255, 'default' => '', 'comment' => '订单描述'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户短信数据
|
||||||
|
*/
|
||||||
class DataUserMessage extends Migrator
|
class DataUserMessage extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUserMessage extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-短信',
|
||||||
])
|
])
|
||||||
->addColumn('type', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '短信类型'])
|
->addColumn('type', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '短信类型'])
|
||||||
->addColumn('msgid', 'string', ['limit' => 50, 'default' => '', 'comment' => '消息编号'])
|
->addColumn('msgid', 'string', ['limit' => 50, 'default' => '', 'comment' => '消息编号'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户余额数据
|
||||||
|
*/
|
||||||
class DataUserBalance extends Migrator
|
class DataUserBalance extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUserBalance extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-余额',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
||||||
->addColumn('code', 'string', ['limit' => 20, 'default' => '', 'comment' => '充值编号'])
|
->addColumn('code', 'string', ['limit' => 20, 'default' => '', 'comment' => '充值编号'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户收货地址数据
|
||||||
|
*/
|
||||||
class DataUserAddress extends Migrator
|
class DataUserAddress extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUserAddress extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户-收货地址',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
||||||
->addColumn('type', 'integer', ['limit' => 1, 'default' => 0, 'comment' => '地址类型(0普通,1默认)'])
|
->addColumn('type', 'integer', ['limit' => 1, 'default' => 0, 'comment' => '地址类型(0普通,1默认)'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端用户数据
|
||||||
|
*/
|
||||||
class DataUser extends Migrator
|
class DataUser extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataUser extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-用户',
|
||||||
])
|
])
|
||||||
->addColumn('pid0', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '临时推荐人UID'])
|
->addColumn('pid0', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '临时推荐人UID'])
|
||||||
->addColumn('pid1', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '推荐人一级UID'])
|
->addColumn('pid1', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '推荐人一级UID'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文章用户数据
|
||||||
|
*/
|
||||||
class DataNewsxCollect extends Migrator
|
class DataNewsxCollect extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataNewsxCollect extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-文章-交互',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '用户UID'])
|
||||||
->addColumn('type', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '记录类型(1收藏,2点赞,3历史,4评论)'])
|
->addColumn('type', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '记录类型(1收藏,2点赞,3历史,4评论)'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文章标签数据
|
||||||
|
*/
|
||||||
class DataNewsMark extends Migrator
|
class DataNewsMark extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataNewsMark extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-文章-标签',
|
||||||
])
|
])
|
||||||
->addColumn('name', 'string', ['limit' => 100, 'default' => '', 'comment' => '标签名称'])
|
->addColumn('name', 'string', ['limit' => 100, 'default' => '', 'comment' => '标签名称'])
|
||||||
->addColumn('remark', 'string', ['limit' => 500, 'default' => '', 'comment' => '标签说明'])
|
->addColumn('remark', 'string', ['limit' => 500, 'default' => '', 'comment' => '标签说明'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文章主体数据
|
||||||
|
*/
|
||||||
class DataNewsItem extends Migrator
|
class DataNewsItem extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class DataNewsItem extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '数据-文章',
|
||||||
])
|
])
|
||||||
->addColumn('code', 'string', ['limit' => 20, 'default' => '', 'comment' => '文章编号'])
|
->addColumn('code', 'string', ['limit' => 20, 'default' => '', 'comment' => '文章编号'])
|
||||||
->addColumn('name', 'string', ['limit' => 100, 'default' => '', 'comment' => '文章标题'])
|
->addColumn('name', 'string', ['limit' => 100, 'default' => '', 'comment' => '文章标题'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品主体数据
|
||||||
|
*/
|
||||||
class ShopGoods extends Migrator
|
class ShopGoods extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品分类数据
|
||||||
|
*/
|
||||||
class ShopGoodsCate extends Migrator
|
class ShopGoodsCate extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class ShopGoodsCate extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-商品-分类',
|
||||||
])
|
])
|
||||||
->addColumn('pid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '上级分类'])
|
->addColumn('pid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '上级分类'])
|
||||||
->addColumn('name', 'string', ['limit' => 255, 'default' => '', 'comment' => '分类名称'])
|
->addColumn('name', 'string', ['limit' => 255, 'default' => '', 'comment' => '分类名称'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品规格数据
|
||||||
|
*/
|
||||||
class ShopGoodsItem extends Migrator
|
class ShopGoodsItem extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class ShopGoodsItem extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-商品-规格',
|
||||||
])
|
])
|
||||||
->addColumn('goods_sku', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品SKU'])
|
->addColumn('goods_sku', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品SKU'])
|
||||||
->addColumn('goods_code', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品编号'])
|
->addColumn('goods_code', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品编号'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品标签数据
|
||||||
|
*/
|
||||||
class ShopGoodsMark extends Migrator
|
class ShopGoodsMark extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class ShopGoodsMark extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-商品-标签',
|
||||||
])
|
])
|
||||||
->addColumn('name', 'string', ['limit' => 100, 'default' => '', 'comment' => '标签名称'])
|
->addColumn('name', 'string', ['limit' => 100, 'default' => '', 'comment' => '标签名称'])
|
||||||
->addColumn('remark', 'string', ['limit' => 200, 'default' => '', 'comment' => '标签描述'])
|
->addColumn('remark', 'string', ['limit' => 200, 'default' => '', 'comment' => '标签描述'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品库存
|
||||||
|
*/
|
||||||
class ShopGoodsStock extends Migrator
|
class ShopGoodsStock extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class ShopGoodsStock extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-商品-库存',
|
||||||
])
|
])
|
||||||
->addColumn('batch_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '操作批量'])
|
->addColumn('batch_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '操作批量'])
|
||||||
->addColumn('goods_code', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品编号'])
|
->addColumn('goods_code', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品编号'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单主体数据
|
||||||
|
*/
|
||||||
class ShopOrder extends Migrator
|
class ShopOrder extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class ShopOrder extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-订单',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '下单用户编号'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '下单用户编号'])
|
||||||
->addColumn('puid1', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '推荐一层用户'])
|
->addColumn('puid1', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '推荐一层用户'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单商品数据
|
||||||
|
*/
|
||||||
class ShopOrderItem extends Migrator
|
class ShopOrderItem extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -16,7 +19,7 @@ class ShopOrderItem extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-订单-商品',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '商城用户编号'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '商城用户编号'])
|
||||||
->addColumn('order_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '商城订单单号'])
|
->addColumn('order_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '商城订单单号'])
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单发货数据
|
||||||
|
*/
|
||||||
class ShopOrderSend extends Migrator
|
class ShopOrderSend extends Migrator
|
||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
@ -17,7 +20,7 @@ class ShopOrderSend extends Migrator
|
|||||||
|
|
||||||
// 创建数据表
|
// 创建数据表
|
||||||
$this->table($table, [
|
$this->table($table, [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-订单-发货',
|
||||||
])
|
])
|
||||||
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '商城用户编号'])
|
->addColumn('uuid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '商城用户编号'])
|
||||||
->addColumn('order_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '商城订单单号'])
|
->addColumn('order_no', 'string', ['limit' => 20, 'default' => '', 'comment' => '商城订单单号'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user