base con autenticacion, registro, modulo encuestas
This commit is contained in:
30
apps/api/src/features/surveys/entities/survey.entity.ts
Normal file
30
apps/api/src/features/surveys/entities/survey.entity.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class Survey {
|
||||
@ApiProperty({ description: 'Survey ID' })
|
||||
id: number;
|
||||
|
||||
@ApiProperty({ description: 'Survey title' })
|
||||
title: string;
|
||||
|
||||
@ApiProperty({ description: 'Survey description' })
|
||||
description: string;
|
||||
|
||||
@ApiProperty({ description: 'Target audience for the survey' })
|
||||
targetAudience: string;
|
||||
|
||||
@ApiProperty({ description: 'Survey closing date' })
|
||||
closingDate?: Date;
|
||||
|
||||
@ApiProperty({ description: 'Survey publication status' })
|
||||
published: boolean;
|
||||
|
||||
@ApiProperty({ description: 'Survey questions' })
|
||||
questions: any[];
|
||||
|
||||
@ApiProperty({ description: 'Creation date' })
|
||||
created_at?: Date;
|
||||
|
||||
@ApiProperty({ description: 'Last update date' })
|
||||
updated_at?: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user