12345678910111213141516171819202122 |
- 'use strict'
- /** @type {import('@adonisjs/lucid/src/Schema')} */
- const Schema = use('Schema')
- class UsersSchema extends Schema {
- up () {
- this.create('users', (table) => {
- table.increments()
- table.string('username', 80).notNullable()
- table.string('email', 254).notNullable()
- table.string('password', 60).notNullable()
- })
- }
- down () {
- this.drop('users')
- }
- }
- module.exports = UsersSchema
|