This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/userShareBase.js
kolaente a8a7f70a3c
All checks were successful
continuous-integration/drone/push Build is passing
Cleanup code & make sure it has a common code style
2020-09-05 22:35:52 +02:00

19 lines
326 B
JavaScript

import AbstractModel from './abstractModel'
export default class UserShareBaseModel extends AbstractModel {
constructor(data) {
super(data)
this.created = new Date(this.created)
this.updated = new Date(this.updated)
}
defaults() {
return {
userId: '',
right: 0,
created: null,
updated: null,
}
}
}