Migrate HickLab3D dashboard and add production auto deployment
Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 19s
Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 19s
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Database\Factories\PrinterFactory;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class Printer extends Model
|
||||
{
|
||||
/** @use HasFactory<PrinterFactory> */
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'bambuPrinters';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = ['printerName', 'printerIp', 'mqttPassword', 'serialNumber', 'userId'];
|
||||
|
||||
protected $hidden = ['mqttPassword'];
|
||||
|
||||
public function telemetry(): HasMany
|
||||
{
|
||||
return $this->hasMany(PrinterTelemetry::class, 'printerId');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user