You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+39
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Game\Furniture;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $item_ids
|
||||
* @property int $page_id
|
||||
* @property string $catalog_name
|
||||
* @property int $cost_credits
|
||||
* @property int $cost_pixels
|
||||
* @property int $cost_diamonds
|
||||
* @property int $amount
|
||||
* @property int $limited_stack
|
||||
* @property int $limited_sells
|
||||
* @property int $order_number
|
||||
* @property string $badge
|
||||
* @property-read ItemBase|null $itemBase
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|CatalogItem whereKey($id)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|CatalogItem where($column, $operator = null, $value = null)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|CatalogItem whereIn($column, $values, $boolean = 'and', $not = false)
|
||||
*/
|
||||
class CatalogItem extends Model
|
||||
{
|
||||
#[\Override]
|
||||
protected $guarded = ['id', 'created_at', 'updated_at', 'page_id', 'item_ids', 'cost_credits', 'cost_duckets', 'cost_diamonds'];
|
||||
|
||||
#[\Override]
|
||||
public $timestamps = false;
|
||||
|
||||
public function itemBase(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ItemBase::class, 'item_ids', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user