UNPKG

devlien

Version:

Devlien is a lightweight, zero-dependency Node.js framework with clean MVC structure, built-in ORM, and intuitive routing for rapid backend development.

17 lines (16 loc) 489 B
import Migration from "devlien/migration"; export default class extends Migration { up(schema){ schema.create('users', (table)=>{ table.increments('id'); table.string('name'); table.string('username').unique(); table.string('email').unique(); table.string('password', 255); table.set('status', ['active', 'inactive']).default('active'); }); } down(schema){ schema.drop('users'); } }