# All files / src/model autoRetry.coffee

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 6/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    121x
    1x
    1x
    1x

    1x

    1x
     mongoose = require 'mongoose'
    server = require '../server'
    connectionDefault = server.connectionDefault
    Schema = mongoose.Schema

    AutoRetrySchema = new Schema
      "transactionID":    type: Schema.Types.ObjectId, required: true
      "channelID":        type: Schema.Types.ObjectId, required: true
      "requestTimestamp": type: Date, required: true

    exports.AutoRetry = connectionDefault.model 'AutoRetry', AutoRetrySchema