Files
hoppscotch/packages/hoppscotch-backend/src/shortcode/shortcode.model.ts
2023-02-09 17:31:54 +05:30

20 lines
395 B
TypeScript

import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class Shortcode {
@Field(() => ID, {
description: 'The shortcode. 12 digit alphanumeric.',
})
id: string;
@Field({
description: 'JSON string representing the request data',
})
request: string;
@Field({
description: 'Timestamp of when the Shortcode was created',
})
createdOn: Date;
}