Skip to content

Latest commit

 

History

History
127 lines (126 loc) · 2.7 KB

schema.md

File metadata and controls

127 lines (126 loc) · 2.7 KB
const user = {
    id,
    email,
    firstName,
    lastName
}

const portfolio = {
    id,
    owner,
    draft: {
        template: {
            name: 'turmeric',
            version,
        },
        templateSettings: {
            turmeric: {
                theme: 'dark',
                font: 'roboto'
            }
        },
        content: {
            projects: [{
                id,
                name,
                media: [{
                    type,
                    url,
                    crop
                }],
                startDate,
                endDate
            }],
            jobs: [{
                id,
                company,
                title,
                role,
                shortDescription,
                longDescription,
                media: [{
                    id,
                    type,
                    url,
                    crop
                }],
                startDate,
                endDate
            }],
            education: [{
                id,
                institution,
                degree,
                role,
                shortDescription,
                longDescription,
                media: [{
                    id,
                    type,
                    url,
                    crop
                }],
                startDate,
                endDate
            }]
        }
    },
    published: {
        template: {
            name: 'turmeric',
            version,
        },
        templateSettings: {
            turmeric: {
                theme: 'dark',
                font: 'roboto'
            }
        },
        content: {
            projects: [{
                id,
                name,
                media: [{
                    type,
                    url,
                    crop
                }],
                startDate,
                endDate
            }],
            jobs: [{
                id,
                company,
                title,
                role,
                shortDescription,
                longDescription,
                media: [{
                    id,
                    type,
                    url,
                    crop
                }],
                startDate,
                endDate
            }],
            education: [{
                id,
                institution,
                degree,
                role,
                shortDescription,
                longDescription,
                media: [{
                    id,
                    type,
                    url,
                    crop
                }],
                startDate,
                endDate
            }]
        }
    }
}