register update
This commit is contained in:
@@ -14,12 +14,17 @@ class CreateFileTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('file', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->string('file_type');
|
||||
$table->string('filename');
|
||||
$table->timestamp('deleted_at');
|
||||
$table->id('deleted_by');
|
||||
$table->datetime('deleted_at')->nullable();
|
||||
$table->integer('deleted_by')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -30,6 +35,6 @@ class CreateFileTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('file');
|
||||
Schema::dropIfExists('files');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user