UNPKG

rprcli

Version:

Reaper.js is a powerful TypeScript-based framework designed to streamline backend development. It offers built-in database migrations, seeders, and SQL query utilities, making it easy to manage data efficiently. With native support for TSX and JSX renderi

14 lines (13 loc) 366 B
import { Migration } from "reaperjs"; export default Migration("authTokens",{ up(blueprint){ blueprint.id() blueprint.number("userId").notNullable() blueprint.string("token").notNullable() blueprint.boolean("expired").notNullable() blueprint.timestamps() }, down(blueprint){ blueprint.dropTable() } })