UNPKG

dancecard-email-schemas

Version:

Schemas for objects for Dancecard Email Nurturing System

48 lines (46 loc) 1.28 kB
let Program = { "id": "./Program", "title": "Program", "description": "A lead nurturing program.", "type": "object", "properties": { "_id": { "description": "Unique ID generated by database.", "type": "string" }, "program_name": { "description": "User provided Program ID/Name", "type": "string" }, "created_on": { "description": "Unix timestamp of creation date", "type": "int" }, "created_on_friendly": { "description": "MM/DD/YYYY date string of creation date.", "type": "string" }, "updated_on": { "description": "Unix timestamp of last update date.", "type": "int" }, "updated_on_friendly": { "description": "MM/DD/YYYY date string of last update date.", "type": "string" }, "active": { "description": "True if this program is active. False if this program is not active.", "type": "boolean" }, "emails": { "description": "List of all emails in this program.", "type": "array", "minItems": 0, "items": { "$ref": "./Email" } } }, "required": ["program_name", "created_on", "created_on_friendly", "updated_on", "updated_on_friendly", "active", "emails"] } export { Program }