aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/database/migrations/1503250034279_user.js
blob: d502e4fa00c3919f92ecf76e4eaf7de51bc818f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema');

class UserSchema extends Schema {
  up() {
    this.create('users', table => {
      table.increments();
      table.json('settings');
      table.timestamps();
    });
  }

  down() {
    this.drop('users');
  }
}

module.exports = UserSchema;