mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
开始官网模板
This commit is contained in:
@@ -44,9 +44,11 @@ class CreateTableNav extends Migrator
|
||||
$table->addColumn(Column::make('xcx_type','integer')->setLimit(10)->setComment('小程序打开方式,1:小程序导航页面,2:普通页面,3:web-view,4:其他小程序,5:电话'));
|
||||
$table->addColumn(Column::make('value','string')->setLimit(100)->setComment('对象值,有可能是网页链接,小程序导航页面路径,小程序普通页面路径,电话'));
|
||||
$table->addColumn(Column::make('xcx_appid','string')->setLimit(30)->setComment('小程序appid,目标是其他小程序是有效'));
|
||||
$table->addColumn(ColumnFormat::integerTypeStatus('status')->setComment('0:下架,1:显示'));
|
||||
$table->addIndex('delete_time');
|
||||
$table->addIndex('type');
|
||||
$table->addIndex('sort');
|
||||
$table->addIndex('status');
|
||||
$table->create();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,10 @@ class CreateTableCategory extends Migrator
|
||||
->addColumn(ColumnFormat::stringShort('tpl_name')->setComment('模板名称'))
|
||||
->addColumn(ColumnFormat::stringUrl('title_img')->setComment('附图'))
|
||||
->addColumn(ColumnFormat::stringLong('desc')->setComment('副标题描述'))
|
||||
->addColumn(ColumnFormat::integerTypeStatus('status')->setComment('0:不显示,1:显示'))
|
||||
->addIndex('pid')
|
||||
->addIndex('status')
|
||||
->addIndex('delete_time')
|
||||
->create();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user