{"size": 488, "ext": "js", "max_stars_repo_path": "app/server/api/models/Painting.js", "max_stars_repo_name": "gdmgent-1718-wot/interactive-wall", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/server/api/models/Painting.js", "max_issues_repo_name": "gdmgent-1718-wot/interactive-wall", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/server/api/models/Painting.js", "max_forks_repo_name": "gdmgent-1718-wot/interactive-wall", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.7692307692, "max_line_length": 60, "alphanum_fraction": 0.5635245902}
'use strict';

let mongoose = require('mongoose');
let Schema = mongoose.Schema;

const PaintingSchema = new Schema({
    title: {
        type: String,
        Required: 'Titel van je kunstwerk'
    },
    artist: {
        type: String,
        Required: 'Jouw naam/pseudo'
    },
    imageUrl: {
        type: String,
        Required: 'Url'
    },
    created_at:{
        type: Date,
        default :Date.now

    },

});
module.exports = mongoose.model('Painting', PaintingSchema);