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_create_users_table.js 429B

12345678910111213
  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. })
  9. }
  10. exports.down = function (knex) {
  11. return knex.schema.dropTable('users')
  12. }