Add initial Todo items and CalDAV sync
This commit is contained in:
1 parent
2e440edc61
commit
a4466a9d2c
18 files changed
+1112
-114
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TodoType extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['name'];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function todos()
|
||||
{
|
||||
return $this->hasMany(Todo::class, 'type_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user