51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Scopes\CommonModel;
|
|
|
|
/**
|
|
* @property string $slug
|
|
* @property string $local_group
|
|
* @property string $email
|
|
* @property string $url
|
|
* @property string $account_name
|
|
* @property string $account_iban
|
|
* @property string $account_bic
|
|
* @property string $city
|
|
* @property string $postcode
|
|
* @property boolean $download_exports
|
|
* @property boolean $upload_exports
|
|
* @property string $gdpr_text
|
|
* @property string $impress_text
|
|
* @property string $url_participation_rules
|
|
* @property boolean $events_allowed
|
|
* @property boolean $has_active_instance
|
|
*/
|
|
class Tenant extends CommonModel
|
|
{
|
|
public static function getTempDirectory() : string {
|
|
return app('tenant')->slug . '/temp-data/';
|
|
}
|
|
public const PRIMARY_TENANT_NAME = 'LV';
|
|
|
|
protected $fillable = [
|
|
'slug',
|
|
'name',
|
|
'email',
|
|
'url',
|
|
'account_name',
|
|
'account_iban',
|
|
'account_bic',
|
|
'city',
|
|
'postcode',
|
|
'download_exports',
|
|
'upload_exports',
|
|
'gdpr_text',
|
|
'impress_text',
|
|
'url_participation_rules',
|
|
'is_active_local_group',
|
|
'has_active_instance'
|
|
];
|
|
}
|