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

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'),
});