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

14 lines
466 B
TypeScript
Raw Normal View History

import UserShareBaseModel from './userShareBase'
2022-07-20 22:42:36 +00:00
import type {IUserProject} from '@/modelTypes/IUserProject'
import type {IProject} from '@/modelTypes/IProject'
2022-07-20 22:42:36 +00:00
// This class extends the user share model with a 'rights' parameter which is used in sharing
export default class UserProjectModel extends UserShareBaseModel implements IUserProject {
projectId: IProject['id'] = 0
2022-06-23 01:22:21 +00:00
constructor(data: Partial<IUserProject>) {
super(data)
this.assignData(data)
}
}