27 lines
624 B
PHP
27 lines
624 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Device extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The primary key associated with the devices table.
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'device_id';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
protected $fillable = ['device_id', 'title', 'device_type', 'description', 'accessories', 'rz_username_buyer', 'serial_number', 'image_url'];
|
|
|
|
//Timestamps are disabled.
|
|
public $timestamps = false;
|
|
} |