mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-02 13:33:21 +00: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
ae95c50aa4
commit
072c2b6a59
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ import { MediaUpload } from '../media/media-upload.entity';
|
||||||
export class Note {
|
export class Note {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
@Column({ type: 'text' })
|
||||||
|
publicId: string;
|
||||||
@Column({
|
@Column({
|
||||||
unique: true,
|
unique: true,
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
|
Loading…
Reference in a new issue