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