diff --git a/app/Models/AffixGroup/AffixGroupEaseTierPull.php b/app/Models/AffixGroup/AffixGroupEaseTierPull.php index 238080f7a..a996f3873 100644 --- a/app/Models/AffixGroup/AffixGroupEaseTierPull.php +++ b/app/Models/AffixGroup/AffixGroupEaseTierPull.php @@ -34,7 +34,7 @@ class AffixGroupEaseTierPull extends CacheModel ]; protected $casts = [ - 'last_updated_at' => 'date', + 'last_updated_at' => 'datetime', ]; public function affixGroup(): BelongsTo diff --git a/app/Models/DungeonRoute/DungeonRoute.php b/app/Models/DungeonRoute/DungeonRoute.php index 24c495627..d4f663b6f 100644 --- a/app/Models/DungeonRoute/DungeonRoute.php +++ b/app/Models/DungeonRoute/DungeonRoute.php @@ -224,12 +224,12 @@ class DungeonRoute extends Model implements TracksPageViewInterface ]; protected $casts = [ - 'thumbnail_refresh_queued_at' => 'date', - 'thumbnail_updated_at' => 'date', - 'published_at' => 'date', - 'expires_at' => 'date', - 'created_at' => 'date', - 'updated_at' => 'date', + 'thumbnail_refresh_queued_at' => 'datetime', + 'thumbnail_updated_at' => 'datetime', + 'published_at' => 'datetime', + 'expires_at' => 'datetime', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', 'enemy_forces' => 'integer', 'demo' => 'integer', 'level_min' => 'integer', diff --git a/app/Models/Expansion.php b/app/Models/Expansion.php index 424ed0715..6345d094e 100644 --- a/app/Models/Expansion.php +++ b/app/Models/Expansion.php @@ -54,9 +54,9 @@ class Expansion extends CacheModel ]; // protected $casts = [ -// 'released_at' => 'date', -// 'created_at' => 'date', -// 'updated_at' => 'date', +// 'released_at' => 'datetime', +// 'created_at' => 'datetime', +// 'updated_at' => 'datetime', // ]; public const EXPANSION_CLASSIC = 'classic'; diff --git a/app/Models/Mapping/MappingVersion.php b/app/Models/Mapping/MappingVersion.php index f63f69d2a..a74021d91 100644 --- a/app/Models/Mapping/MappingVersion.php +++ b/app/Models/Mapping/MappingVersion.php @@ -38,6 +38,7 @@ * @property string|null $mdt_mapping_hash * @property bool $facade_enabled True if this mapping version uses facades, false if it does not. * @property bool $merged Not saved in the database + * * @property Carbon $updated_at * @property Carbon $created_at * diff --git a/app/Models/Season.php b/app/Models/Season.php index abcc82fc3..944d38890 100644 --- a/app/Models/Season.php +++ b/app/Models/Season.php @@ -101,7 +101,7 @@ class Season extends CacheModel protected $appends = ['name', 'name_long']; protected $casts = [ - 'start' => 'date', + 'start' => 'datetime', 'key_level_min' => 'integer', 'key_level_max' => 'integer', ]; diff --git a/app/Models/Spell/Spell.php b/app/Models/Spell/Spell.php index 9eb55a61d..342dc6acd 100644 --- a/app/Models/Spell/Spell.php +++ b/app/Models/Spell/Spell.php @@ -87,7 +87,7 @@ class Spell extends CacheModel implements MappingModelInterface 'duration' => 'integer', 'selectable' => 'boolean', 'hidden_on_map' => 'boolean', - 'fetched_data_at' => 'date', + 'fetched_data_at' => 'datetime', ]; public function setFetchedDataAtAttribute($value): void