From ce132f24329d40a67dde160f0bf6d6881cfc2bca Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 16 May 2021 22:43:42 +0200 Subject: [PATCH] feat(note): Add publicId field This field is a randomly generated 128-bit value encoded with base32-encode using the crockford variant and converted to lowercase. Signed-off-by: Philip Molares --- src/notes/note.entity.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/notes/note.entity.ts b/src/notes/note.entity.ts index 825876b4c..30f06bb3b 100644 --- a/src/notes/note.entity.ts +++ b/src/notes/note.entity.ts @@ -26,6 +26,8 @@ import { MediaUpload } from '../media/media-upload.entity'; export class Note { @PrimaryGeneratedColumn('uuid') id: string; + @Column({ type: 'text' }) + publicId: string; @Column({ unique: true, nullable: true,