The script that does absolutely nothing. Document and design your database in javascript.
- Create.
- Do nothing.
- Repeat.
That's it!
export class MyClass extends Base {
model = 'My';
columns = {};
relationships = {};
}
export class UserClass extends Base {
model = 'User';
columns = {
id: 'integer',
name: 'string'
};
relationships = {
roles: this.belongsToMany(RoleClass)
};
}
If you see areas for improvement, please open an issue or submit a PR or just do nothing.
Licensed under the MIT license.