01 2020
This commit is contained in:
parent
f117f79bb9
commit
3711fcc8d0
101 changed files with 4027 additions and 918 deletions
|
|
@ -29,6 +29,7 @@ class CreateUsersTable extends Migration
|
|||
$table->dateTime('confirmation_code_to')->nullable();
|
||||
$table->unsignedTinyInteger('confirmation_code_remider')->default(0);
|
||||
|
||||
$table->timestamp('release_account')->nullable();
|
||||
$table->boolean('active')->default(false);
|
||||
$table->timestamp('active_date')->nullable();
|
||||
$table->dateTime('agreement')->nullable();
|
||||
|
|
|
|||
46
database/migrations/2020_02_08_164831_create_files_table.php
Normal file
46
database/migrations/2020_02_08_164831_create_files_table.php
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFilesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('files', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->unsignedInteger('user_id')->nullable()->index();
|
||||
$table->string('identifier')->index();
|
||||
$table->string('filename');
|
||||
$table->string('dir');
|
||||
$table->string('original_name');
|
||||
$table->string('ext');
|
||||
$table->string('mine');
|
||||
$table->unsignedInteger('size');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('files');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue