Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .createTable('users', function (usersTable) {
- // Primary Key
- usersTable.increments();
- // Data
- usersTable.string('name', 50).notNullable();
- usersTable.string('username', 50).notNullable().unique();
- usersTable.string('email', 250).notNullable().unique();
- usersTable.string('password', 128).notNullable();
- usersTable.string('guid', 50).notNullable().unique();
- usersTable.timestamp('created_at').notNullable();
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement