hedgedoc/backend/src/database/user-pinned-note.ts
Erik Michelson a9183e82bf
feat(knex): create database interfaces and knexjs nest integration
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-23 22:49:10 +02:00

17 lines
438 B
TypeScript

/*
* SPDX-FileCopyrightText: 2025 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
/**
* A user-pinned-note object represents a {@link Note} that a {@link User} has pinned on their explore page.
* Users can pin any arbitrary amount of notes.
*/
export interface UserPinnedNote {
/** The id of the {@link User} */
userId: number;
/** The id of the {@link Note} */
noteId: number;
}