first commit
This commit is contained in:
25
app/Models/ChannelManagerMapping.php
Normal file
25
app/Models/ChannelManagerMapping.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class ChannelManagerMapping extends BaseModel
|
||||
{
|
||||
|
||||
protected $table = 'channel_manager_mapping';
|
||||
protected $appends = [];
|
||||
|
||||
const CREATED_AT = 'created_at';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
|
||||
protected $dateFormat = 'U';
|
||||
protected $guarded = [];
|
||||
|
||||
protected $hidden = [];
|
||||
|
||||
|
||||
public function propertyChannelManager()
|
||||
{
|
||||
return $this->hasOne("App\Models\PropertyChannel", 'id', 'property_channel_id')->select(['id', 'name']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user