2021-09-12 14:09:29 +00:00
|
|
|
import { BaseModel, BelongsTo, belongsTo, column } from '@ioc:Adonis/Lucid/Orm'
|
|
|
|
|
import Match from './Match'
|
|
|
|
|
|
|
|
|
|
export default class MatchTeam extends BaseModel {
|
|
|
|
|
@column({ isPrimary: true })
|
|
|
|
|
public id: number
|
|
|
|
|
|
|
|
|
|
@column()
|
|
|
|
|
public matchId: string
|
|
|
|
|
|
|
|
|
|
@belongsTo(() => Match)
|
|
|
|
|
public match: BelongsTo<typeof Match>
|
|
|
|
|
|
|
|
|
|
@column()
|
2021-09-12 21:24:21 +00:00
|
|
|
public color: number
|
2021-09-12 14:09:29 +00:00
|
|
|
|
|
|
|
|
@column()
|
2021-09-12 21:24:21 +00:00
|
|
|
public result: string
|
2021-09-12 14:09:29 +00:00
|
|
|
|
|
|
|
|
@column()
|
|
|
|
|
public barons: number
|
|
|
|
|
|
|
|
|
|
@column()
|
|
|
|
|
public dragons: number
|
|
|
|
|
|
|
|
|
|
@column()
|
|
|
|
|
public inhibitors: number
|
|
|
|
|
|
|
|
|
|
@column()
|
|
|
|
|
public riftHeralds: number
|
|
|
|
|
|
2021-09-16 14:01:21 +00:00
|
|
|
@column()
|
|
|
|
|
public towers: number
|
|
|
|
|
|
2021-09-12 14:09:29 +00:00
|
|
|
@column()
|
2021-09-14 14:03:08 +00:00
|
|
|
public bans?: number[]
|
2021-09-12 14:09:29 +00:00
|
|
|
|
|
|
|
|
@column()
|
2021-09-14 14:03:08 +00:00
|
|
|
public banOrders?: number[]
|
2021-09-12 14:09:29 +00:00
|
|
|
}
|