mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
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:
parent
92066d0746
commit
ce132f2432
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue