
The creation of a single repository is no longer relevant. Therefore, we have to separate the front and back repo into two distinct repositories. This PR allows to repatriate the work on dev branch
20 lines
369 B
TypeScript
20 lines
369 B
TypeScript
import { IsNotEmpty } from "class-validator";
|
|
import MetricEntity from "./MetricEntity";
|
|
|
|
export default class ProjectEntity {
|
|
public uuid!: string;
|
|
|
|
@IsNotEmpty({ groups: ["create"] })
|
|
public title!: string;
|
|
|
|
public createdAt!: Date;
|
|
|
|
public updatedAt!: Date;
|
|
|
|
@IsNotEmpty({ groups: ["create"] })
|
|
public network!: string;
|
|
|
|
public metrics?: MetricEntity[];
|
|
}
|
|
|