mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-12 18:22:16 +01:00
Added week start
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\Weekday;
|
||||
use App\Models\Organization;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
@@ -33,6 +34,7 @@ class UserFactory extends Factory
|
||||
'current_team_id' => null,
|
||||
'is_placeholder' => false,
|
||||
'timezone' => 'Europe/Vienna',
|
||||
'week_start' => Weekday::Monday,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,15 @@ return new class extends Migration
|
||||
$table->foreignUuid('current_team_id')->nullable();
|
||||
$table->string('profile_photo_path', 2048)->nullable();
|
||||
$table->string('timezone');
|
||||
$table->enum('week_start', [
|
||||
'monday',
|
||||
'tuesday',
|
||||
'wednesday',
|
||||
'thursday',
|
||||
'friday',
|
||||
'saturday',
|
||||
'sunday',
|
||||
]);
|
||||
$table->timestamps();
|
||||
|
||||
$table->uniqueIndex('email')
|
||||
|
||||
Reference in New Issue
Block a user