import UserShareBaseModel from './userShareBase'

import type {IUserProject} from '@/modelTypes/IUserProject'
import type {IProject} from '@/modelTypes/IProject'

// 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

	constructor(data: Partial<IUserProject>) {
		super(data)
		this.assignData(data)
	}
}