<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Order extends Model
{
    protected $table = "orders";
    public $timestamps = false;
    protected $fillable = ["account_id", "status"];

    public function account(): BelongsTo { return $this->belongsTo(User::class, "account_id"); }
    public function tags(): HasMany { return $this->hasMany(Tag::class, "order_id"); }
}
