Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .createTable('users', function (usersTable) {
  2.       // Primary Key
  3.       usersTable.increments();
  4.  
  5.       // Data
  6.       usersTable.string('name', 50).notNullable();
  7.       usersTable.string('username', 50).notNullable().unique();
  8.       usersTable.string('email', 250).notNullable().unique();
  9.       usersTable.string('password', 128).notNullable();
  10.       usersTable.string('guid', 50).notNullable().unique();
  11.  
  12.       usersTable.timestamp('created_at').notNullable();
  13.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement