AgentProductSeeder.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Database\Seeders\Agent;
  3. use Database\Seeders\BaseSeeder;
  4. /**
  5. * 代理商管理
  6. */
  7. class AgentProductSeeder extends BaseSeeder
  8. {
  9. public function getColumnData()
  10. {
  11. return [
  12. 'agent_id' => ['type' => 'uBigint', 'title' => '代理商'],
  13. 'product_id' => ['type' => 'string', 'title' => '商品id'],
  14. 'share_profit' => ['type' => 'string', 'title' => '分润'],
  15. 'download_url' => ['type' => 'text', 'title' => '专有软件包'],
  16. 'statistics_flag' => ['type' => 'string_20', 'title' => '统计的标志,固定到软件里,同一类产品,可以统计不用标签'],
  17. 'desc' => ['type' => 'text', 'title' => '描述'],
  18. ];
  19. }
  20. /**
  21. * 初始化内容
  22. */
  23. public function init()
  24. {
  25. }
  26. /**
  27. * Run the database seeds.
  28. *
  29. * @return void
  30. */
  31. public function run()
  32. {
  33. $this->schema = 'agent_product';
  34. $this->title = '代理商关联产品表';
  35. $this->start();
  36. }
  37. }