mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
22 lines
517 B
TypeScript
22 lines
517 B
TypeScript
|
|
import { Model } from '@ioc:Mongodb/Model'
|
||
|
|
import { MatchReferenceDto } from 'App/Services/Jax/src/Endpoints/MatchlistEndpoint'
|
||
|
|
|
||
|
|
export interface SummonerModel {
|
||
|
|
puuid: string,
|
||
|
|
matchList?: MatchReferenceDto[],
|
||
|
|
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?: MatchReferenceDto[]
|
||
|
|
public names?: SummonerNames[]
|
||
|
|
}
|