add set persistence
This commit is contained in:
parent
4ac01460fd
commit
5b9df7d02a
7 changed files with 167 additions and 0 deletions
26
backend/app/Set/SetModel.php
Normal file
26
backend/app/Set/SetModel.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Set;
|
||||
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property int $creator_id
|
||||
*
|
||||
* @method static Builder<static>|SetModel newModelQuery()
|
||||
* @method static Builder<static>|SetModel newQuery()
|
||||
* @method static Builder<static>|SetModel query()
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
#[Fillable(['name', 'creator_id'])]
|
||||
class SetModel extends Model
|
||||
{
|
||||
protected $table = 'sets';
|
||||
|
||||
public $timestamps = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue