mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
21 lines
498 B
TypeScript
21 lines
498 B
TypeScript
import { Model } from '@ioc:Mongodb/Model'
|
|
import { MatchlistDto } from 'App/Services/Jax/src/Endpoints/MatchlistEndpoint'
|
|
|
|
export interface SummonerModel {
|
|
puuid: string,
|
|
matchList?: MatchlistDto,
|
|
names?: SummonerNames[]
|
|
}
|
|
|
|
interface SummonerNames {
|
|
name: string,
|
|
date: Date
|
|
}
|
|
|
|
export default class Summoner extends Model implements SummonerModel {
|
|
public static collectionName = 'summoners'
|
|
|
|
public puuid: string
|
|
public matchList?: MatchlistDto
|
|
public names?: SummonerNames[]
|
|
}
|