mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
'use strict'
|
|
|
|
/** @type {import('@adonisjs/lucid/src/Schema')} */
|
|
const Schema = use('Schema')
|
|
|
|
class MatchSchema extends Schema {
|
|
up () {
|
|
this.create('matches', (collection) => {
|
|
collection.index('gameId', {gameId: 1})
|
|
collection.index('summoner_puuid', {summoner_puuid: 1})
|
|
})
|
|
}
|
|
|
|
down () {
|
|
this.drop('matches')
|
|
}
|
|
}
|
|
|
|
module.exports = MatchSchema
|