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/userNamespace.ts

18 lines
469 B
TypeScript
Raw Normal View History

import UserShareBaseModel from './userShareBase'
2022-07-20 22:42:36 +00:00
import type { INamespace } from './namespace'
export interface IUserNamespace {
namespaceId: INamespace['id']
}
// This class extends the user share model with a 'rights' parameter which is used in sharing
2022-07-20 22:42:36 +00:00
export default class UserNamespaceModel extends UserShareBaseModel implements IUserNamespace {
declare namespaceId: INamespace['id']
2022-06-23 01:22:21 +00:00
defaults() {
return {
...super.defaults(),
namespaceId: 0,
}
}
}