| 123456789101112131415161718192021222324252627282930 |
- 'use strict';
- const Backbone = require('backbone');
- const model = Backbone.Model.extend({
- idAttribute: 'id',
- defaults: function () {
- return {
- id: undefined,
- created_on: null,
- modified_on: null,
- incoming_port: null,
- forward_ip: null,
- forwarding_port: null,
- tcp_forwarding: true,
- udp_forwarding: false,
- meta: {},
- // The following are expansions:
- owner: null
- };
- }
- });
- module.exports = {
- Model: model,
- Collection: Backbone.Collection.extend({
- model: model
- })
- };
|