tududi/frontend/entities/Note.ts
antanst 6cf79c322d Update frontend to use UID-based routing
- Update all entities to include UID field
- Convert components to use UID for navigation and links
- Update services to support UID-based API calls
- Add slug utilities for UID extraction
- Update store to handle UID fields
- Fix routing throughout all components
2025-08-06 15:54:45 +03:00

23 lines
535 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
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)
}