SeoKeywordsRecordSeeder.php 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 SeoKeywordsRecordSeeder extends BaseSeeder
  8. {
  9. public function getColumnData()
  10. {
  11. return [
  12. 'seo_keywords_id' => ['type' => 'decimal', 'title' => '关键词id', 'is_null' => 1],
  13. 'product_id' => ['type' => 'decimal', 'title' => '商品id', 'is_null' => 1],
  14. 'publish_time' => ['type' => 'uBigint', 'title' => '发布时间'],
  15. 'username' => ['type' => 'string_60', 'title' => '姓名'],
  16. ];
  17. }
  18. /**
  19. * 初始化内容
  20. */
  21. public function init()
  22. {
  23. }
  24. /**
  25. * Run the database seeds.
  26. *
  27. * @return void
  28. */
  29. public function run()
  30. {
  31. $this->schema = 'seo_keywords_record';
  32. $this->title = 'seo关键词记录表';
  33. $this->start();
  34. }
  35. }