Spaces:
Sleeping
Sleeping
File size: 335 Bytes
8e23875 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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();
}
|