write test for permission controller

This commit is contained in:
2025-03-11 11:47:43 +03:30
parent f394f9cd0c
commit 6ec1f6c2b4
9 changed files with 375 additions and 17 deletions

View File

@@ -21,7 +21,7 @@ return new class extends Migration
$table->decimal('end_lat', 12, 10)->nullable();
$table->decimal('end_lng', 12, 10)->nullable();
$table->string('project_distance')->nullable();
$table->unsignedTinyInteger('item')->index('item');
$table->unsignedTinyInteger('item');//->index('item');
$table->string('item_fa')->nullable();
$table->integer('sub_item')->nullable();
$table->string('sub_item_fa')->nullable();

View File

@@ -36,10 +36,10 @@ return new class extends Migration
$table->string('action_type', 100)->nullable();
$table->text('model')->nullable();
$table->timestamps();
$table->integer('mm')->nullable()->storedAs('month(`created_at`)');
$table->integer('yy')->nullable()->storedAs('year(`created_at`)');
$table->integer('dd')->nullable()->storedAs('dayofmonth(`created_at`)');
$table->integer('hh')->nullable()->storedAs('hour(`created_at`)');
$table->integer('mm')->nullable();//->storedAs('month(`created_at`)');
$table->integer('yy')->nullable();//->storedAs('year(`created_at`)');
$table->integer('dd')->nullable();//->storedAs('dayofmonth(`created_at`)');
$table->integer('hh')->nullable();//->storedAs('hour(`created_at`)');
});
}