billing_free_quota.cjs 402 Bytes
const tableName = 'billing_free_quota'

function buildTable(t) {
  t.string('user_id', 64).notNullable()
  t.string('content_id', 96).notNullable()
  t.string('kind', 32).notNullable()
  t.datetime('window_start', { precision: 3 }).notNullable()
  t.integer('used').notNullable().defaultTo(0)
  t.primary(['user_id', 'content_id', 'kind', 'window_start'])
}

module.exports = { tableName, buildTable }