<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        \App\PermissionGroup::insert([
            [
                'name'=>'newsletters',
                'sort_order'=>'15',
                'id'=>'15'
            ]
        ]);

        \App\Permission::insert([
            [
                'name'=>'view_newsletters',
                'permission_group_id'=>'15'
            ],
            [
                'name'=>'view_newsletter',
                'permission_group_id'=>'15'
            ],
            [
                'name'=>'create_newsletter',
                'permission_group_id'=>'15'
            ],
            [
                'name'=>'edit_newsletter',
                'permission_group_id'=>'15'
            ],
            [
                'name'=>'delete_newsletter',
                'permission_group_id'=>'15'
            ],
            [
                'name'=>'manage_mailing_list',
                'permission_group_id'=>'15'
            ],

        ]);

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
