vmailadmin/database/migrations/2020_03_15_072650_create_accounts_table.php

41 lines
899 B
PHP
Raw Normal View History

2020-05-23 15:20:01 +02:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAccountsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts', function (Blueprint $table) {
$table->increments('id');
$table->string('username', 64);
$table->string('domain', 255);
$table->string('password', 255);
$table->integer('quota')->default('0');
$table->tinyInteger('enabled')->default('0');
$table->tinyInteger('sendonly')->default('0');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts');
}
}