<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

return new class extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('documentgroup_names', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->string('name', 245)->default('')->unique('name');
			$table->integer('private_memgroup')->nullable()->default(0)->comment('determine whether the document group is private to manager users');
			$table->integer('private_webgroup')->nullable()->default(0)->comment('determines whether the document is private to web users');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('documentgroup_names');
	}

};
