mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 08:17:32 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			423 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			423 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Modules\Notes\Entities;
 | 
						|
 | 
						|
use Illuminate\Database\Eloquent\Model;
 | 
						|
 | 
						|
class Note extends Model
 | 
						|
{
 | 
						|
	/*
 | 
						|
    protected $guarded = [
 | 
						|
    		'id',
 | 
						|
    ];
 | 
						|
*/
 | 
						|
    protected $fillable = ["description"];
 | 
						|
 | 
						|
 | 
						|
    protected $table = 'notes';
 | 
						|
 | 
						|
    public function client()
 | 
						|
    {
 | 
						|
        return $this->hasOne(App\Models\Client::class);
 | 
						|
    }
 | 
						|
 | 
						|
    public function notes()
 | 
						|
    {
 | 
						|
    	return $this->hasMany(Note::class);
 | 
						|
    }
 | 
						|
 | 
						|
}
 |