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

36 lines
793 B
PHP
Raw Normal View History

2022-11-16 20:07:10 -06:00
<?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');
}
}