mirror of
https://github.com/the-programmers-hangout/Hermes.git
synced 2026-09-04 09:15:59 +02:00
init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EmoteGuildStat extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'emote_id',
|
||||
'guild_id',
|
||||
'usage_count',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'emote_id' => 'string',
|
||||
'guild_id' => 'string',
|
||||
];
|
||||
|
||||
public function emote()
|
||||
{
|
||||
return $this->belongsTo(
|
||||
Emote::class,
|
||||
'emote_id',
|
||||
'emote_id'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user