UNPKG

sharyn

Version:

Combines all the other packages under one.

14 lines (11 loc) 274 B
// @flow const standardCols = (knex: Function, t: Object) => { t.uuid('id').primary() t.timestamp('createdAt') .notNullable() .defaultTo(knex.fn.now()) t.timestamp('updatedAt') .notNullable() .defaultTo(knex.fn.now()) } module.exports = standardCols