diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-15 12:04:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-15 12:04:54 +0900 |
| commit | d53c55ecb512be114b394955da22e2450d01e379 (patch) | |
| tree | 10fd5da883c1617233670a771c453d9561dd2401 /src/models | |
| parent | Add description (diff) | |
| download | misskey-d53c55ecb512be114b394955da22e2450d01e379.tar.gz misskey-d53c55ecb512be114b394955da22e2450d01e379.tar.bz2 misskey-d53c55ecb512be114b394955da22e2450d01e379.zip | |
wip: clip
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/entities/clip.ts | 6 | ||||
| -rw-r--r-- | src/models/repositories/clip.ts | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/models/entities/clip.ts b/src/models/entities/clip.ts index 37d21f73b1..66b5b8847e 100644 --- a/src/models/entities/clip.ts +++ b/src/models/entities/clip.ts @@ -35,4 +35,10 @@ export class Clip { default: false }) public isPublic: boolean; + + @Column('varchar', { + length: 2048, nullable: true, default: null, + comment: 'The description of the Clip.' + }) + public description: string | null; } diff --git a/src/models/repositories/clip.ts b/src/models/repositories/clip.ts index 9644ceec7e..7cc3fb7110 100644 --- a/src/models/repositories/clip.ts +++ b/src/models/repositories/clip.ts @@ -16,6 +16,7 @@ export class ClipRepository extends Repository<Clip> { id: clip.id, createdAt: clip.createdAt.toISOString(), name: clip.name, + description: clip.description, }; } } @@ -42,5 +43,10 @@ export const packedClipSchema = { optional: false as const, nullable: false as const, description: 'The name of the Clip.' }, + description: { + type: 'string' as const, + optional: false as const, nullable: true as const, + description: 'The description of the Clip.' + }, }, }; |