mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 06:53:08 +02:00
52 lines
945 B
TypeScript
52 lines
945 B
TypeScript
|
export const packedFlashSchema = {
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
id: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'id',
|
||
|
example: 'xxxxxxxxxx',
|
||
|
},
|
||
|
createdAt: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'date-time',
|
||
|
},
|
||
|
updatedAt: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'date-time',
|
||
|
},
|
||
|
title: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
summary: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
script: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
userId: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'id',
|
||
|
},
|
||
|
user: {
|
||
|
type: 'object',
|
||
|
ref: 'UserLite',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
likedCount: {
|
||
|
type: 'number',
|
||
|
optional: false, nullable: true,
|
||
|
},
|
||
|
isLiked: {
|
||
|
type: 'boolean',
|
||
|
optional: true, nullable: false,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|