awary/web-app/src/core/Log.ts

24 lines
329 B
TypeScript
Raw Normal View History

2025-06-11 09:50:52 +02:00
export interface LogData {
id: string,
title: string,
content: string,
tags: {
id: string
name: string
color: string
}[]
projectId: string
createdAt: number
createdBy: string
}
export interface Log extends Readonly<LogData> {}
export class Log {
constructor(data: LogData) {
Object.assign(this, data);
}
}