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 <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-05-16 22:43:42 +02:00 committed by David Mehren
parent 92066d0746
commit ce132f2432
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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,