lemuria
Version:
Standard default model.
55 lines (38 loc) • 595 B
JavaScript
;
const Lemuria = require( "./lemuria.js" );
let UserMold = Lemuria( "User" )
/** Disable database connect temporarily
bindDatabase( );
**/
.addFactor( "location.point" )
.addSchema( "location",
{
"point": {
$type: String
},
"area": {
$type: String
},
"region": {
$type: String
},
"country": {
$type: String
},
"name": {
$type: String
},
"title": {
$type: String
},
"address": {
$type: String
},
"latitude": {
$type: String
},
"longitude": {
$type: String
}
} );
console.log( UserMold.factor );