1 | ;
|
2 |
|
3 | var standardCols = function standardCols(knex, t) {
|
4 | t.uuid('id').primary();
|
5 | t.timestamp('createdAt').notNullable().defaultTo(knex.fn.now());
|
6 | t.timestamp('updatedAt').notNullable().defaultTo(knex.fn.now());
|
7 | t.timestamp('deletedAt');
|
8 | };
|
9 |
|
10 | module.exports = standardCols; |
\ | No newline at end of file |