Skip to content

Instantly share code, notes, and snippets.

View Hmachalani's full-sized avatar

Henri Machalani Hmachalani

View GitHub Profile
@Hmachalani
Hmachalani / PurchaseSchema.js
Created October 24, 2015 02:24
Purchase Schema
var vogels = require('vogels'),
Joi = require('joi');
vogels.AWS.config.loadFromPath('./config.json');
var Purchase= vogels.define('Purchase', {
hashKey : 'uid',
rangeKey: 'tok',
// enable timestamps support
timestamps : true,