open-vault/ui/app/models/secret-v2-version.js
2018-10-18 14:55:50 -05:00

18 lines
441 B
JavaScript

import Secret from './secret';
import DS from 'ember-data';
import { bool } from '@ember/object/computed';
const { attr, belongsTo } = DS;
export default Secret.extend({
pathAttr: 'path',
version: attr('number'),
secret: belongsTo('secret-v2'),
path: attr('string'),
deletionTime: attr('string'),
createdTime: attr('string'),
deleted: bool('deletionTime'),
destroyed: attr('boolean'),
currentVersion: attr('number'),
});