feat: add project schema

This commit is contained in:
2024-02-22 20:59:20 +00:00
parent b232410d83
commit d579c1b7c5
27 changed files with 338 additions and 147 deletions
+5
View File
@@ -1,5 +1,6 @@
import fs from "node:fs";
import path from "node:path";
import cuid2 from "@paralleldrive/cuid2";
export const fileExists = (path: string) => {
try {
@@ -13,3 +14,7 @@ export const fileExists = (path: string) => {
export const getProjectDir = () => {
return path.resolve(process.cwd(), "storage/tmp/project1");
};
export const uid = cuid2.init({
length: 8,
});