42 lines
752 B
PHP
42 lines
752 B
PHP
<?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');
|
|
|
|
}
|
|
|
|
}
|