数据多语言

This commit is contained in:
2025-05-07 14:19:47 +08:00
parent 4c66404a6c
commit 3eea6db29d
19 changed files with 1989 additions and 825 deletions
+46
View File
@@ -0,0 +1,46 @@
<?php
namespace app\model;
use support\Model;
class VehicleAr extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'vehicles_ar';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
/**
* Get the location that owns the vehicle.
*/
public function location()
{
return $this->belongsTo(LocationAr::class, 'locations_id', 'id');
}
/**
* Get the location that owns the vehicle.
*/
public function finalLocation()
{
return $this->belongsTo(LocationAr::class, 'final_locations_id', 'id');
}
}