crunch-node/schemas.js

37 lines
826 B
JavaScript
Raw Normal View History

var uuid = require('node-uuid');
schemas = {
user: {
username: null,
password: null,
hash: null,
email: null,
displayName: null
},
post: {
uuid: uuid.v1(),
title: null,
slug: null,
markdown: null,
createdDate: new Date(),
postDate: new Date(),
updatedDate: new Date(),
deleted: false,
published: false,
category: null,
tags: [],
updateIndexesNeeded: false,
lastBuildDate: new Date("Mon Jan 1 1900 00:00:00 GMT-0500"),
lastUploadDate: new Date("Mon Jan 1 1900 00:00:00 GMT-0500")
},
category: {
uuid: uuid.v1(),
name: null,
slug: null,
description: null,
createdDate: new Date()
}
}
module.exports = schemas