mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 05:01:49 +10:00
refactor(v4.0.0-alpha): beginning of a new era
This commit is contained in:
9
libs/dto/src/statistics/index.ts
Normal file
9
libs/dto/src/statistics/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "nestjs-zod/z";
|
||||
|
||||
export const statisticsSchema = z.object({
|
||||
views: z.number().int().default(0),
|
||||
downloads: z.number().int().default(0),
|
||||
});
|
||||
|
||||
export class StatisticsDto extends createZodDto(statisticsSchema) {}
|
||||
Reference in New Issue
Block a user