Skip to content

Commit

Permalink
Modify the Rules schema
Browse files Browse the repository at this point in the history
  • Loading branch information
murvinlai committed May 31, 2013
1 parent 124d7d8 commit 5a38a01
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions schema/rules.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
*
*/
* Privacy Rules
*/

var rules ={ // not normalized and optimized for Mongo storage.
name : String, /* Name of the rule */
title : String, /* Display purpose title */
content : {
text : String, /* Details about the rule, in text */
html : String /* Details about the rule, in html */
},
category : String, /* Category of the rules */
applyFields : [], /* fields that apply on . List of string */
allowAccessFields : [], /* fields that allow information or data to be shared */
validateFunc: Function, /* Function that does validation */
author : [], /* List of author */
verifiedBy : [], /* Rules that are verified by */
applyLocation: [], /* Locations where this privacy terms will be in effect */
expire : Date, /* Expiration date */
modification: [] /* History of modification */
};

0 comments on commit 5a38a01

Please sign in to comment.