38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\Note
|
|
*
|
|
* @property int $id
|
|
* @property int $project_id
|
|
* @property string $content
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @property-read \App\Models\Project|null $project
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note whereContent($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note whereProjectId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Note whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Note extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['content', 'project_id'];
|
|
|
|
public function project()
|
|
{
|
|
return $this->belongsTo(Project::class);
|
|
}
|
|
}
|