1575323518345_submission_status_schema.js

21 lines | 414 B Blame History Raw Download
'use strict'

/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')

class SubmissionStatusSchema extends Schema {
  up () {
    this.create('submission_statuses', (table) => {
      table.increments()
      table.string('status').notNullable().unique()
      table.timestamps()
    })
  }

  down () {
    this.drop('submission_statuses')
  }
}

module.exports = SubmissionStatusSchema