open-vault/ui/app/models/secret-v2-version.js

18 lines
441 B
JavaScript
Raw Normal View History

import Secret from './secret';
import DS from 'ember-data';
2018-10-16 21:08:31 +00:00
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'),
});