UNPKG

memserver

Version:

in-memory database/ORM and http mock server you can run in-browser and node environments. Built for large frontend teams, fast tests and rapid prototyping

15 lines (12 loc) 247 B
import Model from "@memserver/model"; export default class User extends Model { static defaultAttributes = { is_admin: false, slug() { return `${this.firstName}-${this.lastName}`; }, }; constructor() { super(); } }