SeoKeywordsSeeder.php 891 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Database\Seeders\Backend;
  3. use Database\Seeders\BaseSeeder;
  4. use Illuminate\Support\Facades\Hash;
  5. use Txj\Elastic\Facades\Eav;
  6. use Txj\Elastic\Facades\ES;
  7. class SeoKeywordsSeeder extends BaseSeeder
  8. {
  9. public function getColumnData()
  10. {
  11. return [
  12. 'product_id' => ['type' => 'decimal', 'title' => '商品id', 'is_null' => false],
  13. 'keywords' => ['type' => 'string_60', 'title' => '关键词', 'is_null' => false],
  14. 'number_month' => ['type' => 'string_60', 'title' => '月搜索量', 'is_null' => false],
  15. ];
  16. }
  17. /**
  18. * 初始化内容
  19. */
  20. public function init()
  21. {
  22. }
  23. /**
  24. * Run the database seeds.
  25. *
  26. * @return void
  27. */
  28. public function run()
  29. {
  30. $this->schema = 'seo_keywords';
  31. $this->title = '产品seo关键词表';
  32. $this->start();
  33. }
  34. }