12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Database\Seeders\Backend;
- use Database\Seeders\BaseSeeder;
- use Illuminate\Support\Facades\Hash;
- use Txj\Elastic\Facades\Eav;
- use Txj\Elastic\Facades\ES;
- class SeoKeywordsSeeder extends BaseSeeder
- {
- public function getColumnData()
- {
- return [
- 'product_id' => ['type' => 'decimal', 'title' => '商品id', 'is_null' => false],
- 'keywords' => ['type' => 'string_60', 'title' => '关键词', 'is_null' => false],
- 'number_month' => ['type' => 'string_60', 'title' => '月搜索量', 'is_null' => false],
- ];
- }
- /**
- * 初始化内容
- */
- public function init()
- {
- }
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- $this->schema = 'seo_keywords';
- $this->title = '产品seo关键词表';
- $this->start();
- }
- }
|