2020-12-02 02:54:10 -08:00
|
|
|
export interface ITask {
|
|
|
|
// Required attributes
|
|
|
|
id?: string;
|
|
|
|
title?: string;
|
|
|
|
status?: TaskStatus;
|
|
|
|
flag?: boolean;
|
|
|
|
// Optional attributes
|
|
|
|
owner?: string;
|
|
|
|
description?: string;
|
|
|
|
startDate?: Date;
|
|
|
|
endDate?: Date;
|
|
|
|
// Backend generated attributes
|
2020-12-02 02:24:25 -08:00
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
createdBy?: string;
|
|
|
|
createdAt?: Date;
|
|
|
|
updatedBy?: string;
|
|
|
|
upadtedAt?: Date;
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
export enum TaskStatus {
|
|
|
|
WAITING = 'Waiting',
|
|
|
|
INPROGRESS = 'InProgress',
|
|
|
|
COMPLETED = 'Completed',
|
|
|
|
CANCEL = 'Cancel',
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|