Skip to content

Commit

Permalink
fix: Trailing 오류가 발생하지 않아야 합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeng committed Jul 9, 2024
1 parent a6e8e1c commit 97f5a41
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Models/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions app/Models/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class Config extends Model
{
use HasFactory;

protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = [
'type',
'data'
Expand Down
3 changes: 3 additions & 0 deletions app/Models/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class File extends Model
{
use HasFactory;


protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = [
'user_id',
'storage',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class Log extends Model
{
use HasFactory;


protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = [
'type',
'user_id',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Mission.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

/**
Expand Down
3 changes: 3 additions & 0 deletions app/Models/SurveyAnswer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

/**
Expand Down
3 changes: 3 additions & 0 deletions app/Models/SurveyEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
3 changes: 3 additions & 0 deletions app/Models/SurveyQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
3 changes: 3 additions & 0 deletions app/Models/SurveySection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class SurveySection extends Model
*
* @var array
*/

protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = ['name', 'description'];

/**
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class Updater extends Model
*
* @var string[]
*/

protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = [
'user_id',
'version',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class User extends Authenticatable implements BannableContract
*
* @var array<int, string>
*/

protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = [
'name',
'email',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/UserAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class UserAccount extends Model
*
* @var array<int, string>
*/

protected $dateFormat = 'Y-m-d H:i:s.u';

protected $fillable = [
'user_id',
'provider',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/UserBadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions app/Models/UserMission.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions app/Models/UserRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 97f5a41

Please sign in to comment.