15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
import { Tag } from "./Tag";
|
|
|
|
export interface Task {
|
|
id?: number;
|
|
name: string;
|
|
status: StatusType;
|
|
priority?: PriorityType;
|
|
due_date?: string;
|
|
note?: string;
|
|
tags?: Tag[];
|
|
project_id?: number;
|
|
}
|
|
|
|
export type StatusType = 'not_started' | 'in_progress' | 'done' | 'archived';
|
|
export type PriorityType = 'low' | 'medium' | 'high';
|