Browse Source

add field company_id in models

pull/1/head
farhantock 8 months ago
parent
commit
136fb42da4
  1. 2
      app/Models/Absent.php
  2. 2
      app/Models/Broadcast.php
  3. 3
      app/Models/Company.php
  4. 4
      app/Models/PanicButton.php
  5. 6
      app/Models/Presence.php
  6. 11
      app/Models/ReportK3.php

2
app/Models/Absent.php

@ -12,6 +12,6 @@ class Absent extends Model
const UPDATED_AT = 'updated_at'; const UPDATED_AT = 'updated_at';
protected $fillable = [ protected $fillable = [
'user_id', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by' 'user_id', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id'
]; ];
} }

2
app/Models/Broadcast.php

@ -12,6 +12,6 @@ class Broadcast extends Model
const UPDATED_AT = 'updated_at'; const UPDATED_AT = 'updated_at';
protected $fillable = [ protected $fillable = [
'title_notif', 'message_notif', 'description', 'send_to_type', 'send_to_id', 'status_send', 'created_at', 'created_by', 'updated_at', 'updated_by' 'title_notif', 'message_notif', 'description', 'send_to_type', 'send_to_id', 'status_send', 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id'
]; ];
} }

3
app/Models/Company.php

@ -31,6 +31,7 @@ class Company extends Model
'created_at', 'created_at',
'created_by', 'created_by',
'updated_at', 'updated_at',
'updated_by' 'updated_by',
'date_register'
]; ];
} }

4
app/Models/PanicButton.php

@ -12,6 +12,6 @@ class PanicButton extends Model
const UPDATED_AT = 'updated_at'; const UPDATED_AT = 'updated_at';
protected $fillable = [ protected $fillable = [
'user_id', 'lat', 'lon', 'status_response', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by' 'user_id', 'lat', 'lon', 'status_response', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id'
]; ];
} }

6
app/Models/Presence.php

@ -13,9 +13,9 @@ class Presence extends Model
const UPDATED_AT = 'updated_at'; const UPDATED_AT = 'updated_at';
protected $fillable = [ protected $fillable = [
'user_id', 'clock_in', 'clock_out', 'date_presence', 'user_id', 'clock_in', 'clock_out', 'date_presence',
'clock_in_lat', 'clock_in_lng', 'clock_out_lat', 'clock_out_lng', 'clock_in_lat', 'clock_in_lng', 'clock_out_lat', 'clock_out_lng',
'clock_in_loc', 'clock_out_loc','clock_in_boundary', 'clock_out_boundary', 'clock_in_loc', 'clock_out_loc', 'clock_in_boundary', 'clock_out_boundary',
'created_at', 'created_by', 'updated_at', 'updated_by' 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id'
]; ];
} }

11
app/Models/ReportK3.php

@ -12,14 +12,15 @@ class ReportK3 extends Model
const UPDATED_AT = 'updated_at'; const UPDATED_AT = 'updated_at';
protected $fillable = [ protected $fillable = [
'user_id', 'user_id',
'description', 'description',
'proyek_id', 'proyek_id',
'report_date', 'report_date',
'description', 'description',
'created_at', 'created_at',
'created_by', 'created_by',
'updated_at', 'updated_at',
'updated_by' 'updated_by',
'company_id'
]; ];
} }

Loading…
Cancel
Save