project continue
This commit is contained in:
@@ -15,7 +15,7 @@ class CreateUsersTable extends Migration
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('username');
|
||||
$table->string('username')->unique();
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
|
||||
@@ -15,8 +15,9 @@ class CreateProjectsTable extends Migration
|
||||
{
|
||||
Schema::create('projects', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('name')->unique();
|
||||
$table->string('description');
|
||||
$table->string('mmc_path');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
|
||||
@@ -15,6 +15,7 @@ class CreateDocStructureModelsTable extends Migration
|
||||
{
|
||||
Schema::create('doc_structure_models', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('project_id')->unsigned();
|
||||
$table->string('category');
|
||||
$table->integer('parent_id')->unsigned()->nullable();
|
||||
$table->timestamps();
|
||||
@@ -17,5 +17,13 @@ class UsersTableSeeder extends Seeder
|
||||
'password' => Hash::make('12345678'),
|
||||
'is_admin' => true,
|
||||
]);
|
||||
|
||||
DB::table('users')->insert([
|
||||
'username' => 'bolotina',
|
||||
'name' => 'Юлия Болотина',
|
||||
'email' => 'bolotina@dinamika-avia.ru',
|
||||
'password' => Hash::make('12345678'),
|
||||
'is_admin' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user