feat : 테이블 및 DB 마이그레이션 파일 추가
products - common_codes - parts - products - files - price_histories - boms - bom_items boards - boards - board_settings - posts - board_comments - board_files - post_custom_field_values permissions - menus - roles - user_menu_permissions - role_menu_permissions tenants - tenants - plans - subscriptions - payments
This commit is contained in:
18
app/Models/Boards/PostCustomFieldValue.php
Normal file
18
app/Models/Boards/PostCustomFieldValue.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Boards;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PostCustomFieldValue extends Model
|
||||
{
|
||||
protected $table = 'post_custom_field_values';
|
||||
protected $fillable = ['post_id', 'field_id', 'value'];
|
||||
|
||||
public function post() {
|
||||
return $this->belongsTo(Post::class, 'post_id');
|
||||
}
|
||||
public function field() {
|
||||
return $this->belongsTo(BoardSetting::class, 'field_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user