39 lines
938 B
PHP
39 lines
938 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class TermsAndPolicy extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('terms_and_policy', function (Blueprint $table) {
|
|
$table->increments('tp_id');
|
|
$table->uuid('tp_uuid')->unique();
|
|
$table->string('title',64);
|
|
$table->text('details');
|
|
$table->tinyInteger('type');
|
|
$table->timestamps();
|
|
$table->integer('created_by')->default(0);
|
|
$table->integer('updated_by')->default(0);
|
|
$table->boolean('is_active')->default(1);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('terms_and_policy');
|
|
}
|
|
}
|