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
16 lines (15 loc) • 461 B
text/typescript
import { Migration } from "reaperjs";
export default Migration("users",{
up(blueprint){
blueprint.id()
blueprint.string("firstName").notNullable()
blueprint.string("lastName").notNullable()
blueprint.string("email").notNullable()
blueprint.string("password").notNullable()
blueprint.boolean("admin").nullable()
blueprint.timestamps()
},
down(blueprint){
blueprint.dropTable()
}
})