2016-01-17 04:17:24 +00:00
|
|
|
var uuid = require('node-uuid');
|
|
|
|
|
2016-01-16 21:40:58 +00:00
|
|
|
schemas = {
|
|
|
|
user: {
|
|
|
|
username: null,
|
|
|
|
password: null,
|
|
|
|
hash: null,
|
2016-01-17 04:17:24 +00:00
|
|
|
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: [],
|
2016-01-22 02:17:49 +00:00
|
|
|
lastGenerateDate: new Date("Mon Jan 1 1900 00:00:00 GMT-0500"),
|
|
|
|
lastUploadDate: new Date("Mon Jan 1 1900 00:00:00 GMT-0500")
|
2016-01-17 04:17:24 +00:00
|
|
|
},
|
|
|
|
category: {
|
|
|
|
uuid: uuid.v1(),
|
|
|
|
name: null,
|
|
|
|
slug: null,
|
|
|
|
description: null,
|
|
|
|
createdDate: new Date()
|
2016-01-16 21:40:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = schemas
|