UNPKG

periodicjs.core.data

Version:

Core data is the ORM wrapping component of periodicjs.core.controller that provides database adapters for commonly used databases (ie. mongo, sql, postgres). Adapters provide a standard set of methods and options regardless of the type of database and so

18 lines (17 loc) 279 B
'use strict'; const lowkie = require('lowkie'); module.exports = lowkie.Schema({ contact: { first_name: String, last_name: String, dob: Date }, createdat: { type: Date, default: Date.now }, updatedat: { type: Date, default: Date.now } });