You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20210524105357_users.js 480B

1234567891011121314
  1. exports.up = function (knex) {
  2. return knex.schema.createTable('users', function (table) {
  3. table.increments('user_id').primary()
  4. table.string('user_name', 32).notNullable()
  5. table.string('user_email', 90).notNullable()
  6. table.boolean('is_admin').notNullable()
  7. table.boolean('is_poster').notNullable()
  8. table.boolean('is_verified').notNullable()
  9. })
  10. }
  11. exports.down = function (knex) {
  12. return knex.schema.dropTable('users')
  13. }