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