@coko/server
Version:
Reusable server for use by Coko's projects
22 lines • 742 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.down = exports.up = void 0;
const up = async (knex) => {
await knex.schema.createTable('chat_threads', table => {
table.uuid('id').primary();
table
.timestamp('created', { useTz: true })
.notNullable()
.defaultTo(knex.fn.now());
table.timestamp('updated', { useTz: true });
table.uuid('related_object_id').notNullable();
table.string('chat_type').notNullable();
table.text('type');
});
};
exports.up = up;
const down = async (knex) => {
await knex.schema.dropTable('chat_threads');
};
exports.down = down;
//# sourceMappingURL=1627557678-chat-thread-init.js.map