📜  schema knex.js - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:53.606000             🧑  作者: Mango

代码示例1
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)