Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 248 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

    namespace App\Models;

    use Illuminate\Database\Eloquent\Factories\HasFactory;
    use Illuminate\Database\Eloquent\Model;
    use Illuminate\Database\Eloquent\Relations\HasMany;

    /**
 * App\Models\Supplier
 *
 * @property int $id
 * @property string $name
 * @property string $name2
 * @property int $rank
 * @property string $contact
 * @property string $street
 * @property string $houseno
 * @property string $zip
 * @property string $city
 * @property int|null $country_id
 * @property string $phone
 * @property string $fax
 * @property string $email
 * @property string $customer_no
 * @property string $shipping_hint
 * @property string $payment_hint
 * @property string $comment
 * @property string $commission_text
 * @property string $skript
 * @property string $stock_skript
 * @property string $interval
 * @property string $accounts_payable
 * @property string $ledger_account
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\SupplierShipping> $shippings
 * @property-read int|null $shippings_count
 * @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\SupplierWarehouse> $supplierWarehouses
 * @property-read int|null $supplier_warehouses_count
 * @method static \Database\Factories\SupplierFactory factory($count = null, $state = [])
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier query()
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereAccountsPayable($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCity($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereComment($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCommissionText($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereContact($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCountryId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCustomerNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereFax($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereHouseno($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereInterval($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereLedgerAccount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereName2($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier wherePaymentHint($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereRank($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereShippingHint($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereSkript($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereStockSkript($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereStreet($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Supplier whereZip($value)
 * @mixin \Eloquent
 */
class Supplier extends Model
    {
        use HasFactory;

        protected $guarded = [
            "id",
        ];

        public function supplierWarehouses(): HasMany
        {
            return $this->hasMany( SupplierWarehouse::class );
        }

        public function shippings(): HasMany
        {
            return $this->hasMany( SupplierShipping::class );
        }
    }