software-admin-panel-laravel/database/migrations/2022_11_17_002413_create_gr...

36 lines
793 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('groups', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('program_limit');
$table->unsignedInteger('update_limit');
$table->unsignedInteger('support_ticket_limit');
$table->string('name', 100);
$table->text('description');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('groups');
}
}