<?php

declare(strict_types=1);

namespace App\Model\OldModel;

use Hyperf\DbConnection\Model\Model;

/**
 */
class Category extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'category';
    protected ?string $connection = 'secondary';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [];
    public function info()
    {
        return $this->hasMany(Article::class, 'id','catid');
    }
}
