Initial Commit

This commit is contained in:
2024-12-19 13:54:15 +05:30
commit 970a972b11
17 changed files with 1487 additions and 0 deletions

9
src/utils/id.ts Normal file
View File

@@ -0,0 +1,9 @@
import { init } from "@paralleldrive/cuid2";
const id = init({
length: 15,
});
export function generateId(perfix?: string) {
return perfix ? perfix + id() : id();
}