Answers for "schema knex.js"

0

schema knex.js

knex.schema.createTable('users', function (table) {
  table.increments();
  table.string('name');
  table.timestamps();
})Outputs:create table `users` (`id` int unsigned not null auto_increment primary key, `name` varchar(255), `created_at` datetime, `updated_at` datetime)
Posted by: Guest on April-19-2021

Browse Popular Code Answers by Language