parent
4f5667bba2
commit
18b3a032f4
@ -0,0 +1,48 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace App\Models\Admin; |
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
||||||
|
use Illuminate\Database\Eloquent\Model; |
||||||
|
|
||||||
|
class BuildingDistribution extends Model |
||||||
|
{ |
||||||
|
use HasFactory; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $connection = 'mysql_admin'; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $table = 'building_distributions'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that are mass assignable. |
||||||
|
* |
||||||
|
* @var array<int, string> |
||||||
|
*/ |
||||||
|
protected $fillable = [ |
||||||
|
'area_id', |
||||||
|
'name', |
||||||
|
'description', |
||||||
|
'image', |
||||||
|
'sort', |
||||||
|
'is_display', |
||||||
|
]; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that should be cast. |
||||||
|
* |
||||||
|
* @var array<string, string> |
||||||
|
*/ |
||||||
|
protected $casts = [ |
||||||
|
'area_id' => 'integer', |
||||||
|
'sort' => 'integer', |
||||||
|
'is_display' => 'integer', |
||||||
|
]; |
||||||
|
} |
@ -0,0 +1,49 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace App\Models\Admin; |
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
||||||
|
use Illuminate\Database\Eloquent\Model; |
||||||
|
|
||||||
|
class HealthLecture extends Model |
||||||
|
{ |
||||||
|
use HasFactory; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $connection = 'mysql_admin'; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $table = 'health_lectures'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that are mass assignable. |
||||||
|
* |
||||||
|
* @var array<int, string> |
||||||
|
*/ |
||||||
|
protected $fillable = [ |
||||||
|
'title', |
||||||
|
'speaker', |
||||||
|
'lecture_date', |
||||||
|
'content', |
||||||
|
'sort', |
||||||
|
'is_display', |
||||||
|
]; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that should be cast. |
||||||
|
* |
||||||
|
* @var array<string, string> |
||||||
|
*/ |
||||||
|
protected $casts = [ |
||||||
|
'id' => 'integer', |
||||||
|
'sort' => 'integer', |
||||||
|
'is_display' => 'integer', |
||||||
|
]; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,49 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace App\Models\Admin; |
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
||||||
|
use Illuminate\Database\Eloquent\Model; |
||||||
|
|
||||||
|
class Info extends Model |
||||||
|
{ |
||||||
|
use HasFactory; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $connection = 'mysql_admin'; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $table = 'hospital_infos'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that are mass assignable. |
||||||
|
* |
||||||
|
* @var array<int, string> |
||||||
|
*/ |
||||||
|
protected $fillable = [ |
||||||
|
'name', |
||||||
|
'level', |
||||||
|
'address', |
||||||
|
'telephone', |
||||||
|
'email', |
||||||
|
'logo', |
||||||
|
'website', |
||||||
|
'description' |
||||||
|
]; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that should be cast. |
||||||
|
* |
||||||
|
* @var array<string, string> |
||||||
|
*/ |
||||||
|
protected $casts = [ |
||||||
|
'id' => 'integer', |
||||||
|
]; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,49 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace App\Models\Admin; |
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
||||||
|
use Illuminate\Database\Eloquent\Model; |
||||||
|
|
||||||
|
class News extends Model |
||||||
|
{ |
||||||
|
use HasFactory; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $connection = 'mysql_admin'; |
||||||
|
|
||||||
|
/** |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
protected $table = 'hospital_news'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that are mass assignable. |
||||||
|
* |
||||||
|
* @var array<int, string> |
||||||
|
*/ |
||||||
|
protected $fillable = [ |
||||||
|
'title', |
||||||
|
'image', |
||||||
|
'sort', |
||||||
|
'is_display', |
||||||
|
'content', |
||||||
|
'published_at', |
||||||
|
]; |
||||||
|
|
||||||
|
/** |
||||||
|
* The attributes that should be cast. |
||||||
|
* |
||||||
|
* @var array<string, string> |
||||||
|
*/ |
||||||
|
protected $casts = [ |
||||||
|
'id' => 'integer', |
||||||
|
'sort' => 'integer', |
||||||
|
'is_display' => 'integer', |
||||||
|
]; |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue