From 97f5a417be5069e2a9398c130441eecf55cfcaf5 Mon Sep 17 00:00:00 2001 From: Laeng Date: Wed, 10 Jul 2024 06:55:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Trailing=20=EC=98=A4=EB=A5=98=EA=B0=80?= =?UTF-8?q?=20=EB=B0=9C=EC=83=9D=ED=95=98=EC=A7=80=20=EC=95=8A=EC=95=84?= =?UTF-8?q?=EC=95=BC=20=ED=95=A9=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Badge.php | 2 ++ app/Models/Config.php | 2 ++ app/Models/File.php | 3 +++ app/Models/Log.php | 3 +++ app/Models/Mission.php | 3 +++ app/Models/Survey.php | 3 +++ app/Models/SurveyAnswer.php | 3 +++ app/Models/SurveyEntry.php | 3 +++ app/Models/SurveyQuestion.php | 3 +++ app/Models/SurveySection.php | 3 +++ app/Models/Updater.php | 3 +++ app/Models/User.php | 3 +++ app/Models/UserAccount.php | 3 +++ app/Models/UserBadge.php | 3 +++ app/Models/UserMission.php | 3 +++ app/Models/UserRecord.php | 3 +++ 16 files changed, 46 insertions(+) diff --git a/app/Models/Badge.php b/app/Models/Badge.php index d6bc32b2..3764a41c 100644 --- a/app/Models/Badge.php +++ b/app/Models/Badge.php @@ -9,6 +9,8 @@ class Badge extends Model { use HasFactory; + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $guarded = ['id', 'created_at', 'updated_at']; public function users() diff --git a/app/Models/Config.php b/app/Models/Config.php index b6e278a5..83623b4a 100644 --- a/app/Models/Config.php +++ b/app/Models/Config.php @@ -9,6 +9,8 @@ class Config extends Model { use HasFactory; + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'type', 'data' diff --git a/app/Models/File.php b/app/Models/File.php index d7212dd6..6fc67758 100644 --- a/app/Models/File.php +++ b/app/Models/File.php @@ -10,6 +10,9 @@ class File extends Model { use HasFactory; + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'user_id', 'storage', diff --git a/app/Models/Log.php b/app/Models/Log.php index e8fc4640..c4707200 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -10,6 +10,9 @@ class Log extends Model { use HasFactory; + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'type', 'user_id', diff --git a/app/Models/Mission.php b/app/Models/Mission.php index dc2127c6..acbf320b 100644 --- a/app/Models/Mission.php +++ b/app/Models/Mission.php @@ -17,6 +17,9 @@ class Mission extends Model * * @var string[] */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'user_id', 'survey_id', diff --git a/app/Models/Survey.php b/app/Models/Survey.php index 65f61c9e..39e99386 100644 --- a/app/Models/Survey.php +++ b/app/Models/Survey.php @@ -15,6 +15,9 @@ class Survey extends Model * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = ['name', 'settings', 'user_id']; /** diff --git a/app/Models/SurveyAnswer.php b/app/Models/SurveyAnswer.php index 70f55e35..87481788 100644 --- a/app/Models/SurveyAnswer.php +++ b/app/Models/SurveyAnswer.php @@ -15,6 +15,9 @@ class SurveyAnswer extends Model * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = ['value', 'survey_question_id', 'survey_entry_id']; /** diff --git a/app/Models/SurveyEntry.php b/app/Models/SurveyEntry.php index da55270d..e1fe5fbe 100644 --- a/app/Models/SurveyEntry.php +++ b/app/Models/SurveyEntry.php @@ -16,6 +16,9 @@ class SurveyEntry extends Model * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = ['survey_id', 'participant_id']; protected $casts = [ diff --git a/app/Models/SurveyQuestion.php b/app/Models/SurveyQuestion.php index ea297303..ff70d96d 100644 --- a/app/Models/SurveyQuestion.php +++ b/app/Models/SurveyQuestion.php @@ -16,6 +16,9 @@ class SurveyQuestion extends Model * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = ['type', 'options', 'title', 'content', 'rules', 'survey_id', 'survey_section_id']; protected $casts = [ diff --git a/app/Models/SurveySection.php b/app/Models/SurveySection.php index 2e7ce91b..d4446c6a 100644 --- a/app/Models/SurveySection.php +++ b/app/Models/SurveySection.php @@ -15,6 +15,9 @@ class SurveySection extends Model * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = ['name', 'description']; /** diff --git a/app/Models/Updater.php b/app/Models/Updater.php index 1b8e845e..10fef495 100644 --- a/app/Models/Updater.php +++ b/app/Models/Updater.php @@ -15,6 +15,9 @@ class Updater extends Model * * @var string[] */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'user_id', 'version', diff --git a/app/Models/User.php b/app/Models/User.php index 61cd9caa..b2cf7338 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -22,6 +22,9 @@ class User extends Authenticatable implements BannableContract * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'name', 'email', diff --git a/app/Models/UserAccount.php b/app/Models/UserAccount.php index 9fc2c876..1cbd4bea 100644 --- a/app/Models/UserAccount.php +++ b/app/Models/UserAccount.php @@ -15,6 +15,9 @@ class UserAccount extends Model * * @var array */ + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'user_id', 'provider', diff --git a/app/Models/UserBadge.php b/app/Models/UserBadge.php index a6afa2cb..16a8000b 100644 --- a/app/Models/UserBadge.php +++ b/app/Models/UserBadge.php @@ -15,6 +15,9 @@ class UserBadge extends Model 'badge_id' ]; + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $casts = [ 'created_at' => 'datetime', 'updated_at' => 'datetime' diff --git a/app/Models/UserMission.php b/app/Models/UserMission.php index 098f8d97..7eee6c79 100644 --- a/app/Models/UserMission.php +++ b/app/Models/UserMission.php @@ -10,6 +10,9 @@ class UserMission extends Model { use HasFactory; + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'user_id', 'mission_id', diff --git a/app/Models/UserRecord.php b/app/Models/UserRecord.php index 9683c970..4d4d8b24 100644 --- a/app/Models/UserRecord.php +++ b/app/Models/UserRecord.php @@ -10,6 +10,9 @@ class UserRecord extends Model { use HasFactory; + + protected $dateFormat = 'Y-m-d H:i:s.u'; + protected $fillable = [ 'user_id', 'recorder_id',