DepEsIndicesSeeder.php 687 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Database\Seeders\Developer;
  3. use Database\Seeders\BaseSeeder;
  4. use Txj\Elastic\Facades\Eav;
  5. use Txj\Elastic\Facades\ES;
  6. class DepEsIndicesSeeder extends BaseSeeder
  7. {
  8. public function getColumnData()
  9. {
  10. return [
  11. 'assemble_id' => ['type' => 'uBigInt', 'title' => '集合(表)id'],
  12. 'setting' => ['type' => 'json', 'title' => 'ES索引设置信息'],
  13. ];
  14. }
  15. public function init()
  16. {
  17. }
  18. /**
  19. * Run the database seeds.
  20. *
  21. * @return void
  22. */
  23. public function run()
  24. {
  25. $this->schema = 'dep_es_indices';
  26. $this->title = 'ES索引表';
  27. $this->start();
  28. }
  29. }