mirror of
https://github.com/the-programmers-hangout/Hermes.git
synced 2026-09-04 09:15:59 +02:00
27 lines
465 B
PHP
27 lines
465 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UserGuildStat extends Model
|
|
{
|
|
protected $fillable = [
|
|
'user_id',
|
|
'guild_id',
|
|
'emote_id',
|
|
'usage_count',
|
|
];
|
|
|
|
protected $casts = [
|
|
'user_id' => 'string',
|
|
'guild_id' => 'string',
|
|
'emote_id' => 'string',
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class, 'user_id', 'discord_id');
|
|
}
|
|
}
|