List existing organisations

This commit is contained in:
2022-01-21 10:56:43 +00:00
parent c26c65fa8c
commit 584aa1909e
13 changed files with 613 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<?php
/*
* AVSDev UF Organisations (https://avsdev.uk)
*
* @link https://git.avsdev.uk/avsdev/sprinkle-organisations
* @license https://git.avsdev.uk/avsdev/sprinkle-organisations/blob/master/LICENSE.md (LGPL-3.0 License)
*/
namespace UserFrosting\Sprinkle\Organisations\Database\Models;
use UserFrosting\Sprinkle\Core\Database\Models\Model;
/**
* Organisation Class.
*
* Represents a organisation object as stored in the database.
*
* @author Craig Williams (https://avsdev.uk)
*
* @property string $slug
* @property string $name
* @property string $description
* @property timestamp $created_at
* @property timestamp $updated_at
* @property timestamp $deleted_at
*/
class Organisation extends Model
{
/**
* @var string The name of the table for the current model.
*/
protected $table = 'organisations';
/**
* Fields that should be mass-assignable when creating a new Organisation.
*
* @var string[]
*/
protected $fillable = [
'slug',
'name',
'description',
'deleted_at',
];
/**
* The attributes that should be mutated to dates.
*
* @var string[]
*/
protected $dates = [
'deleted_at',
];
/**
* @var bool Enable timestamps for this class.
*/
public $timestamps = true;
}