📅  最后修改于: 2022-03-11 14:57:53.606000             🧑  作者: Mango
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)