opentriage-api / src /lib /utils.ts
KrishnaCosmic's picture
Deploying Next.js backend
1cb28f1
raw
history blame contribute delete
335 Bytes
import { v4 as uuidv4 } from "uuid";
/**
* Generates a UUID string for use as primary keys.
* Preserves the same format as the Python backend.
*/
export function generateId(): string {
return uuidv4();
}
/**
* Returns the current ISO 8601 timestamp.
*/
export function now(): string {
return new Date().toISOString();
}