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

18 lines
448 B
JavaScript
Raw Normal View History

import Secret from './secret';
import DS from 'ember-data';
import { alias, 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'),
});