added private key model

This commit is contained in:
Tankred Hase 2013-05-19 01:36:01 +02:00
parent 0cb5214b94
commit 8326e21b1b
1 changed files with 4 additions and 4 deletions

View File

@ -1,22 +1,22 @@
(function() {
'use strict';
app.model.SecretKey = Backbone.Model.extend({
app.model.PrivateKey = Backbone.Model.extend({
defaults: {
_id: null,
userId: null,
encryptedKey: null,
keyIV: null
iv: null
},
initialize: function() {}
});
app.model.SecretKeyCollection = Backbone.Collection.extend({
app.model.PrivateKeyCollection = Backbone.Collection.extend({
model: app.model.SecretKey
model: app.model.PrivateKey
});