Browse Source

Ajusta migrations

usuarios_separados
Guilherme Capanema 6 years ago
parent
commit
7d86adcc17
2 changed files with 43 additions and 10 deletions
  1. +36
    -0
      database/migrations/2014_10_12_000000_create_collaborators_table.php
  2. +7
    -10
      database/migrations/2020_06_06_201558_create_associates_table.php

+ 36
- 0
database/migrations/2014_10_12_000000_create_collaborators_table.php View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCollaboratorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('collaborators', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->string('avatar')->nullable();
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('collaborators');
}
}

database/migrations/2014_10_12_000000_create_users_table.php → database/migrations/2020_06_06_201558_create_associates_table.php View File