feat: bringing shortcodes from central to selfhost
This commit is contained in:
committed by
Balu Babu
parent
757d1add5b
commit
056a5df4e1
19
packages/hoppscotch-backend/src/shortcode/shortcode.model.ts
Normal file
19
packages/hoppscotch-backend/src/shortcode/shortcode.model.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user