mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 13:21:45 +01:00
14 lines
399 B
JavaScript
14 lines
399 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema.createTable('users', (table) => {
|
|
table.binary('pubkey').primary()
|
|
table.boolean('is_admitted').default(0)
|
|
table.bigint('balance').default(0)
|
|
table.datetime('tos_accepted_at', { useTz: false, precision: 3 })
|
|
table.timestamps(true, true, false)
|
|
})
|
|
}
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.dropTable('users')
|
|
}
|