'use strict';
/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
  Schema = mongoose.Schema;
/**
 * Attestation Schema
 */
var AttestationSchema = new Schema({
  attestation_date: {
    type: Date,
    default: Date.now
  },
  user: {
    type: Schema.ObjectId,
    ref: 'User'
  },
  business_unit_id: {
    type: String,
    default: '',
    trim: true
  },
  department: {
    type: String,
    default: '',
    trim: true
  },
  statement: {
    type: String,
    default: '',
    trim: true
  },
  date_start_string: {
    type: String,
    default: '',
    trim: true
  },
  date_end_string: {
    type: String,
    default: '',
    trim: true
  },
  response: {
    type: String,
    default: '',
    trim: true
  },
  originating_system_name: {
    type: String,
    default: '',
    trim: true
  },
  originating_system_id: {
    type: String,
    default: '',
    trim: true
  }
});
mongoose.model('Attestation', AttestationSchema);
