<?php

use Illuminate\Database\Seeder;

class PermissionsTableSeeder extends Seeder
{
	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
		DB::table('permissions')->insert([
			["name" => "create_user"], 				    // Create new user
			["name" => "access_all_users"], 		    // Access to all users to manage
			["name" => "create_post"], 				    // Create new post
			["name" => "confirm_post"], 			    // Confirm new post
			["name" => "access_all_posts"], 		    // Access to all posts to manage
			["name" => "publish_all_posts"], 		    // Publish and review all posts
			["name" => "publish_post"], 			    // Publish your posts only
			["name" => "edit_all_posts"], 			    // Edit all posts
			["name" => "edit_post"], 				    // Edit your posts only
			["name" => "delete_all_posts"], 		    // Delete all posts
			["name" => "delete_post"], 				    // Delete your posts only
			["name" => "approve_all_comments"], 	    // Approve comments of your posts and other users posts
			["name" => "approve_comment"], 			    // Approve your post comments
			["name" => "access_all_categories"],	    // Access to all categories to manage
            ["name" => "access_all_phases"],	        // Access to all phases
            ["name" => "create_phase"],	                // Create new phase
            ["name" => "edit_phase"],	                // Edit phase
            ["name" => "delete_phase"],	                // Delete phase
            ["name" => "access_all_post_securities"],	// Access to all post securities
            ["name" => "create_post_securities"],	    // Create new post security
            ["name" => "edit_post_securities"],	        // Edit post security
            ["name" => "delete_post_securities"],	    // Delete post security
		]);
	}
}
