12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace Database\Seeders\Agent;
- use Database\Seeders\BaseSeeder;
- /**
- * 代理商管理
- */
- class AgentProductSeeder extends BaseSeeder
- {
- public function getColumnData()
- {
- return [
- 'agent_id' => ['type' => 'uBigint', 'title' => '代理商'],
- 'product_id' => ['type' => 'string', 'title' => '商品id'],
- 'share_profit' => ['type' => 'string', 'title' => '分润'],
- 'download_url' => ['type' => 'text', 'title' => '专有软件包'],
- 'statistics_flag' => ['type' => 'string_20', 'title' => '统计的标志,固定到软件里,同一类产品,可以统计不用标签'],
- 'desc' => ['type' => 'text', 'title' => '描述'],
- ];
- }
- /**
- * 初始化内容
- */
- public function init()
- {
- }
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- $this->schema = 'agent_product';
- $this->title = '代理商关联产品表';
- $this->start();
- }
- }
|