tududi/frontend/entities/Note.ts
2025-07-06 22:45:31 +03:00

20 lines
434 B
TypeScript

import { Tag } from "./Tag";
export interface Note {
id?: number;
title: string;
content: string;
created_at?: string;
updated_at?: string;
project_id?: number; // Foreign key for project
tags?: Tag[];
Tags?: Tag[]; // Sequelize association naming (capitalized)
project?: {
id: number;
name: string;
};
Project?: {
id: number;
name: string;
}; // Sequelize association naming (capitalized)
}