register update

This commit is contained in:
faiqahzaman
2022-01-16 16:26:38 +08:00
parent aa66ad46ab
commit e2072ecd78
3 changed files with 85 additions and 56 deletions
@@ -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');
}
}