tududi/frontend/entities/Note.ts
Chris 72d0baeb75
Notes page revamp! (#487)
* Setup wide layout

* fixup! Setup wide layout

* Setup new layout
2025-11-06 17:59:30 +02:00

25 lines
678 B
TypeScript

import { Tag } from './Tag';
export interface Note {
id?: number;
uid?: string;
title: string;
content: string;
created_at?: string;
updated_at?: string;
project_id?: number; // Foreign key for project (deprecated, use project_uid)
project_uid?: string; // Foreign key for project by uid
color?: string; // Background color for the note
tags?: Tag[];
Tags?: Tag[]; // Sequelize association naming (capitalized)
project?: {
id: number;
uid?: string;
name: string;
};
Project?: {
id: number;
uid?: string;
name: string;
}; // Sequelize association naming (capitalized)
}