first commit
This commit is contained in:
41
app/Models/PhotoGoogleLabel.php
Normal file
41
app/Models/PhotoGoogleLabel.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class PhotoGoogleLabel extends BaseModel
|
||||
{
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'photo_google_label';
|
||||
protected $appends = [];
|
||||
|
||||
const CREATED_AT = 'created_at';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
|
||||
protected $dateFormat = 'U';
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [];
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public function photoCategoryLabelMapping(){
|
||||
|
||||
|
||||
return $this->hasOne('App\Models\PropertyPhotoCategoryLabelMapping','photo_google_label_id', 'id');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user