2023-03-23 21:50:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Device extends Model
|
|
|
|
{
|
2023-03-24 13:49:09 +01:00
|
|
|
/**
|
|
|
|
* Timestamps are disabled.
|
|
|
|
* @var boolean
|
|
|
|
*/
|
2023-03-23 21:50:31 +01:00
|
|
|
public $timestamps = false;
|
2023-03-24 13:49:09 +01:00
|
|
|
/**
|
|
|
|
* The primary key associated with the table Devices.
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $primaryKey = 'device_id';
|
2023-03-26 12:17:43 +02:00
|
|
|
|
|
|
|
protected $fillable = ['device_id', 'title', 'device_type', 'description', 'accessories', 'rz_username_buyer', 'serial_number', 'image_url'];
|
|
|
|
|
2023-03-23 21:50:31 +01:00
|
|
|
use HasFactory;
|
|
|
|
}
|