* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * App\Models\UserAudible. * * @property int $id * @property int $user_id * @property int|null $room_id * @property int|null $target_id * @property int|null $bot_id * @property int $status * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at */ class UserAudible extends Model { use HasFactory; /** * Belongs To A User. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(User::class); } /** * Belongs To A Chatroom. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function room(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Chatroom::class); } /** * Belongs To A Target. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function target(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(User::class); } /** * Belongs To A Bot. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function bot(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Bot::class); } }