tududi/frontend/entities/Note.ts
Antonis Anastasiadis 220bc92b4a
Lint frontend (#131)
* Add lint-fix npm target

* Sync eslint+plugins with backend

* Add prettier

* Ignore no-explicit-any lint rule for now

* Silence eslint react warning

* Format frontend via prettier

* Lint frontend.

---------

Co-authored-by: antanst <>
2025-07-09 12:23:55 +03:00

20 lines
473 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)
}