mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
19 lines
325 B
JavaScript
19 lines
325 B
JavaScript
|
|
'use strict'
|
||
|
|
|
||
|
|
/** @type {import('@adonisjs/lucid/src/Schema')} */
|
||
|
|
const Schema = use('Schema')
|
||
|
|
|
||
|
|
class SummonerSchema extends Schema {
|
||
|
|
up () {
|
||
|
|
this.create('summoners', (collection) => {
|
||
|
|
collection.index('puuid', {puuid: 1})
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
down () {
|
||
|
|
this.drop('summoners')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = SummonerSchema
|