crunch-node/schemas.js
Andrew Davidson dc8639c5ef Fixed #19 with the addition of some new modules to parse the image EXIF
data.

Made a lot of progress on #1 with additional work on the rendering
templates.
2016-01-24 22:05:38 -05:00

56 lines
1.3 KiB
JavaScript

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()
},
photo: {
uuid: uuid.v1(),
title: null,
slug: null,
markdown: null,
masterPath: null,
extension: null,
mimetype: null,
createdDate: new Date(),
photoDate: new Date(),
updatedDate: new Date(),
deleted: false,
published: false,
aspect: null,
tags: [],
gps: {},
exif: {},
lastBuildDate: new Date("Mon Jan 1 1900 00:00:00 GMT-0500"),
lastUploadDate: new Date("Mon Jan 1 1900 00:00:00 GMT-0500")
}
}
module.exports = schemas