211 lines
6.2 KiB
PHP
211 lines
6.2 KiB
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Seeder;
|
||
|
||
class FilesTableSeeder extends Seeder
|
||
{
|
||
|
||
/**
|
||
* Auto generated seed file
|
||
*
|
||
* @return void
|
||
*/
|
||
public function run()
|
||
{
|
||
|
||
|
||
if (\DB::table('files')->count() > 0) {
|
||
return;
|
||
}
|
||
|
||
\DB::table('files')->insert(array (
|
||
0 =>
|
||
array (
|
||
'id' => 1,
|
||
'pid' => 0,
|
||
'cid' => 0,
|
||
'name' => '设计知识',
|
||
'type' => 'folder',
|
||
'size' => 0,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 14:03:29',
|
||
'updated_at' => '2021-07-01 14:03:29',
|
||
'deleted_at' => NULL,
|
||
),
|
||
1 =>
|
||
array (
|
||
'id' => 2,
|
||
'pid' => 1,
|
||
'cid' => 0,
|
||
'name' => '如何搭建B端设计规范?',
|
||
'type' => 'document',
|
||
'size' => 135808,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 14:03:37',
|
||
'updated_at' => '2021-07-01 14:17:28',
|
||
'deleted_at' => NULL,
|
||
),
|
||
2 =>
|
||
array (
|
||
'id' => 3,
|
||
'pid' => 1,
|
||
'cid' => 0,
|
||
'name' => '页面设计中的信息组织策略探索-言之有序',
|
||
'type' => 'document',
|
||
'size' => 95768,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:46:59',
|
||
'updated_at' => '2021-07-01 15:49:14',
|
||
'deleted_at' => NULL,
|
||
),
|
||
3 =>
|
||
array (
|
||
'id' => 4,
|
||
'pid' => 1,
|
||
'cid' => 0,
|
||
'name' => '素材整理',
|
||
'type' => 'folder',
|
||
'size' => 0,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:49:43',
|
||
'updated_at' => '2021-07-01 15:49:43',
|
||
'deleted_at' => NULL,
|
||
),
|
||
4 =>
|
||
array (
|
||
'id' => 5,
|
||
'pid' => 4,
|
||
'cid' => 0,
|
||
'name' => '配置静态IP地址',
|
||
'type' => 'document',
|
||
'size' => 2280,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:49:50',
|
||
'updated_at' => '2021-07-01 15:53:09',
|
||
'deleted_at' => NULL,
|
||
),
|
||
5 =>
|
||
array (
|
||
'id' => 6,
|
||
'pid' => 1,
|
||
'cid' => 0,
|
||
'name' => '脑图',
|
||
'type' => 'mind',
|
||
'size' => 15576,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:53:50',
|
||
'updated_at' => '2021-07-01 16:11:39',
|
||
'deleted_at' => NULL,
|
||
),
|
||
6 =>
|
||
array (
|
||
'id' => 7,
|
||
'pid' => 1,
|
||
'cid' => 0,
|
||
'name' => '数据统计',
|
||
'type' => 'sheet',
|
||
'size' => 0,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:54:58',
|
||
'updated_at' => '2021-07-01 15:54:58',
|
||
'deleted_at' => NULL,
|
||
),
|
||
7 =>
|
||
array (
|
||
'id' => 8,
|
||
'pid' => 14,
|
||
'cid' => 0,
|
||
'name' => '会议纪要',
|
||
'type' => 'document',
|
||
'size' => 64704,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:56:09',
|
||
'updated_at' => '2021-07-01 16:11:13',
|
||
'deleted_at' => NULL,
|
||
),
|
||
8 =>
|
||
array (
|
||
'id' => 9,
|
||
'pid' => 0,
|
||
'cid' => 0,
|
||
'name' => '部门周报',
|
||
'type' => 'document',
|
||
'size' => 186128,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:57:39',
|
||
'updated_at' => '2021-07-01 15:57:56',
|
||
'deleted_at' => NULL,
|
||
),
|
||
9 =>
|
||
array (
|
||
'id' => 10,
|
||
'pid' => 13,
|
||
'cid' => 0,
|
||
'name' => '项目管理',
|
||
'type' => 'sheet',
|
||
'size' => 15070072,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:58:30',
|
||
'updated_at' => '2021-07-01 16:10:17',
|
||
'deleted_at' => NULL,
|
||
),
|
||
10 =>
|
||
array (
|
||
'id' => 11,
|
||
'pid' => 0,
|
||
'cid' => 0,
|
||
'name' => '工作计划',
|
||
'type' => 'sheet',
|
||
'size' => 14170904,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 15:59:59',
|
||
'updated_at' => '2021-07-01 16:00:28',
|
||
'deleted_at' => NULL,
|
||
),
|
||
11 =>
|
||
array (
|
||
'id' => 12,
|
||
'pid' => 0,
|
||
'cid' => 0,
|
||
'name' => '流程图',
|
||
'type' => 'flow',
|
||
'size' => 43344,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 16:01:27',
|
||
'updated_at' => '2021-07-01 16:03:06',
|
||
'deleted_at' => NULL,
|
||
),
|
||
12 =>
|
||
array (
|
||
'id' => 13,
|
||
'pid' => 0,
|
||
'cid' => 0,
|
||
'name' => '项目管理',
|
||
'type' => 'folder',
|
||
'size' => 0,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 16:10:08',
|
||
'updated_at' => '2021-07-01 16:10:08',
|
||
'deleted_at' => NULL,
|
||
),
|
||
13 =>
|
||
array (
|
||
'id' => 14,
|
||
'pid' => 0,
|
||
'cid' => 0,
|
||
'name' => '会议纪要',
|
||
'type' => 'folder',
|
||
'size' => 0,
|
||
'userid' => 1,
|
||
'created_at' => '2021-07-01 16:11:08',
|
||
'updated_at' => '2021-07-01 16:11:08',
|
||
'deleted_at' => NULL,
|
||
),
|
||
));
|
||
|
||
|
||
}
|
||
}
|