Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed May 31, 2024
1 parent 4a753f4 commit 254918b
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 77 deletions.
7 changes: 6 additions & 1 deletion Models/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ protected function casts(): array
{
return [
'published_at' => 'datetime',

'verified_at' => 'datetime',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
'verified_at' => 'datetime',

'updated_by' => 'string',
'created_by' => 'string',
'deleted_by' => 'string',
];
}

Expand Down
4 changes: 4 additions & 0 deletions Models/BaseMorphPivot.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ protected function casts(): array
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',

'updated_by' => 'string',
'created_by' => 'string',
'deleted_by' => 'string',
];
}
}
4 changes: 4 additions & 0 deletions Models/BasePivot.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ protected function casts(): array
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',

'updated_by' => 'string',
'created_by' => 'string',
'deleted_by' => 'string',
];
}

Expand Down
73 changes: 41 additions & 32 deletions Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
/**
* Modules\Notify\Models\Contact.
*
* @property int $id
* @property string $model_type
* @property string $model_id
* @property int $id
* @property string $model_type
* @property string $model_id
* @property string|null $contact_type
* @property string|null $value
* @property string|null $user_id
Expand All @@ -23,9 +23,9 @@
* @property string|null $created_by
* @property string|null $token
* @property string|null $sms_sent_at
* @property int|null $sms_count
* @property int|null $sms_count
* @property string|null $mail_sent_at
* @property int|null $mail_count
* @property int|null $mail_count
* @property string|null $survey_pdf_id
* @property string|null $token
* @property string|null $first_name
Expand All @@ -47,37 +47,41 @@
* @property string|null $usesleft
* @property string|null $sms_status_code
* @property string|null $sms_status_txt
* @property int|null $duplicate_count
* @property int|null $order_column
* @property int|null $duplicate_count
* @property int|null $order_column
*
* @method static \Modules\Notify\Database\Factories\ContactFactory factory($count = null, $state = [])
* @method static Builder|Contact newModelQuery()
* @method static Builder|Contact newQuery()
* @method static Builder|Contact query()
* @method static Builder|Contact whereContactType($value)
* @method static Builder|Contact whereCreatedAt($value)
* @method static Builder|Contact whereCreatedBy($value)
* @method static Builder|Contact whereId($value)
* @method static Builder|Contact whereModelId($value)
* @method static Builder|Contact whereModelType($value)
* @method static Builder|Contact whereLastName($value)
* @method static Builder|Contact whereMailCount($value)
* @method static Builder|Contact whereMailSentAt($value)
* @method static Builder|Contact whereMobilePhone($value)
* @method static Builder|Contact whereOrderColumn($value)
* @method static Builder|Contact whereSmsCount($value)
* @method static Builder|Contact whereSmsSentAt($value)
* @method static Builder|Contact whereSmsStatusCode($value)
* @method static Builder|Contact whereSmsStatusTxt($value)
* @method static Builder|Contact whereSurveyPdfId($value)
* @method static Builder|Contact whereToken($value)
* @method static Builder|Contact whereUpdatedAt($value)
* @method static Builder|Contact whereUpdatedBy($value)
* @method static Builder|Contact whereUserId($value)
* @method static Builder|Contact whereValue($value)
* @method static Builder|Contact whereVerifiedAt($value)
* @method static Builder|Contact newModelQuery()
* @method static Builder|Contact newQuery()
* @method static Builder|Contact query()
* @method static Builder|Contact whereContactType($value)
* @method static Builder|Contact whereCreatedAt($value)
* @method static Builder|Contact whereCreatedBy($value)
* @method static Builder|Contact whereId($value)
* @method static Builder|Contact whereModelId($value)
* @method static Builder|Contact whereModelType($value)
* @method static Builder|Contact whereLastName($value)
* @method static Builder|Contact whereMailCount($value)
* @method static Builder|Contact whereMailSentAt($value)
* @method static Builder|Contact whereMobilePhone($value)
* @method static Builder|Contact whereOrderColumn($value)
* @method static Builder|Contact whereSmsCount($value)
* @method static Builder|Contact whereSmsSentAt($value)
* @method static Builder|Contact whereSmsStatusCode($value)
* @method static Builder|Contact whereSmsStatusTxt($value)
* @method static Builder|Contact whereSurveyPdfId($value)
* @method static Builder|Contact whereToken($value)
* @method static Builder|Contact whereUpdatedAt($value)
* @method static Builder|Contact whereUpdatedBy($value)
* @method static Builder|Contact whereUserId($value)
* @method static Builder|Contact whereValue($value)
* @method static Builder|Contact whereVerifiedAt($value)
*
* @mixin Eloquent
*
* @property string|null $email
* @property string|null $mobile_phone
*
* @method static Builder|Contact whereAttribute1($value)
* @method static Builder|Contact whereAttribute10($value)
* @method static Builder|Contact whereAttribute11($value)
Expand All @@ -96,6 +100,7 @@
* @method static Builder|Contact whereEmail($value)
* @method static Builder|Contact whereFirstName($value)
* @method static Builder|Contact whereUsesleft($value)
*
* @mixin \Eloquent
*/
class Contact extends BaseModel
Expand All @@ -111,6 +116,10 @@ class Contact extends BaseModel
protected function casts(): array
{
return [
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',

'updated_by' => 'string',
'created_by' => 'string',
'deleted_by' => 'string',
Expand Down
94 changes: 50 additions & 44 deletions Models/NotifyTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,54 @@
/**
* Modules\Notify\Models\NotifyTheme.
*
* @property int $id
* @property string|null $lang
* @property string|null $type
* @property string|null $subject
* @property string|null $body
* @property string|null $from
* @property Carbon|null $created_at
* @property string|null $created_by
* @property Carbon|null $updated_at
* @property string|null $updated_by
* @property string|null $post_type
* @property int|null $post_id
* @property string|null $body_html
* @property string|null $theme
* @property string|null $from_email
* @property string|null $logo_src
* @property int|null $logo_width
* @property int|null $logo_height
* @property array $view_params
* @property array $logo
* @property Model|\Eloquent $linkable
* @property int $id
* @property string|null $lang
* @property string|null $type
* @property string|null $subject
* @property string|null $body
* @property string|null $from
* @property Carbon|null $created_at
* @property string|null $created_by
* @property Carbon|null $updated_at
* @property string|null $updated_by
* @property string|null $post_type
* @property int|null $post_id
* @property string|null $body_html
* @property string|null $theme
* @property string|null $from_email
* @property string|null $logo_src
* @property int|null $logo_width
* @property int|null $logo_height
* @property array $view_params
* @property array $logo
* @property Model|\Eloquent $linkable
* @property MediaCollection<int, \Modules\Media\Models\Media> $media
* @property int|null $media_count
* @property int|null $media_count
*
* @method static \Modules\Notify\Database\Factories\NotifyThemeFactory factory($count = null, $state = [])
* @method static Builder|NotifyTheme newModelQuery()
* @method static Builder|NotifyTheme newQuery()
* @method static Builder|NotifyTheme query()
* @method static Builder|NotifyTheme whereBody($value)
* @method static Builder|NotifyTheme whereBodyHtml($value)
* @method static Builder|NotifyTheme whereCreatedAt($value)
* @method static Builder|NotifyTheme whereCreatedBy($value)
* @method static Builder|NotifyTheme whereFrom($value)
* @method static Builder|NotifyTheme whereFromEmail($value)
* @method static Builder|NotifyTheme whereId($value)
* @method static Builder|NotifyTheme whereLang($value)
* @method static Builder|NotifyTheme whereLogoHeight($value)
* @method static Builder|NotifyTheme whereLogoSrc($value)
* @method static Builder|NotifyTheme whereLogoWidth($value)
* @method static Builder|NotifyTheme wherePostId($value)
* @method static Builder|NotifyTheme wherePostType($value)
* @method static Builder|NotifyTheme whereSubject($value)
* @method static Builder|NotifyTheme whereTheme($value)
* @method static Builder|NotifyTheme whereType($value)
* @method static Builder|NotifyTheme whereUpdatedAt($value)
* @method static Builder|NotifyTheme whereUpdatedBy($value)
* @method static Builder|NotifyTheme whereViewParams($value)
* @method static Builder|NotifyTheme newModelQuery()
* @method static Builder|NotifyTheme newQuery()
* @method static Builder|NotifyTheme query()
* @method static Builder|NotifyTheme whereBody($value)
* @method static Builder|NotifyTheme whereBodyHtml($value)
* @method static Builder|NotifyTheme whereCreatedAt($value)
* @method static Builder|NotifyTheme whereCreatedBy($value)
* @method static Builder|NotifyTheme whereFrom($value)
* @method static Builder|NotifyTheme whereFromEmail($value)
* @method static Builder|NotifyTheme whereId($value)
* @method static Builder|NotifyTheme whereLang($value)
* @method static Builder|NotifyTheme whereLogoHeight($value)
* @method static Builder|NotifyTheme whereLogoSrc($value)
* @method static Builder|NotifyTheme whereLogoWidth($value)
* @method static Builder|NotifyTheme wherePostId($value)
* @method static Builder|NotifyTheme wherePostType($value)
* @method static Builder|NotifyTheme whereSubject($value)
* @method static Builder|NotifyTheme whereTheme($value)
* @method static Builder|NotifyTheme whereType($value)
* @method static Builder|NotifyTheme whereUpdatedAt($value)
* @method static Builder|NotifyTheme whereUpdatedBy($value)
* @method static Builder|NotifyTheme whereViewParams($value)
*
* @mixin Eloquent
* @mixin \Eloquent
*/
Expand Down Expand Up @@ -96,6 +98,10 @@ class NotifyTheme extends BaseModel implements HasMedia
protected function casts(): array
{
return [
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',

'updated_by' => 'string',
'created_by' => 'string',
'deleted_by' => 'string',
Expand Down

0 comments on commit 254918b

Please sign in to comment.