1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace Database\Seeders\Backend;
- use Database\Seeders\BaseSeeder;
- use Illuminate\Support\Facades\Hash;
- use Txj\Elastic\Facades\Eav;
- use Txj\Elastic\Facades\ES;
- class SeoKeywordsRecordSeeder extends BaseSeeder
- {
- public function getColumnData()
- {
- return [
- 'seo_keywords_id' => ['type' => 'decimal', 'title' => '关键词id', 'is_null' => 1],
- 'product_id' => ['type' => 'decimal', 'title' => '商品id', 'is_null' => 1],
- 'publish_time' => ['type' => 'uBigint', 'title' => '发布时间'],
- 'username' => ['type' => 'string_60', 'title' => '姓名'],
- ];
- }
- /**
- * 初始化内容
- */
- public function init()
- {
- }
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- $this->schema = 'seo_keywords_record';
- $this->title = 'seo关键词记录表';
- $this->start();
- }
- }
|