Add request tac api and migration

This commit is contained in:
Amir
2023-06-08 13:36:32 +08:00
parent 3527156477
commit 88d37a2848
3 changed files with 76 additions and 0 deletions
@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTacCodesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tac_codes', function (Blueprint $table) {
$table->id();
$table->integer('tac_code');
$table->string('phone_number');
$table->integer('case_code');
$table->string('case_description'); // reason for request tac code
$table->integer('status')->default(0);
$table->timestamp('expired_at');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tac_codes');
}
}