crunch-node/schemas.js

36 lines
722 B
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,
url: null,
markdown: null,
createdDate: new Date(),
postDate: new Date(),
updatedDate: new Date(),
deleted: false,
published: false,
category: null,
tags: [],
lastGenerateDate: 0,
lastUpload: 0
},
category: {
uuid: uuid.v1(),
name: null,
slug: null,
description: null,
createdDate: new Date()
}
}
module.exports = schemas