feat: implement Project Management with Gantt Chart, Milestones, and CRM enhancements

This commit is contained in:
2026-03-01 00:26:59 +01:00
parent 4b5609a75e
commit 6444cf1e81
47 changed files with 15312 additions and 7373 deletions

View File

@@ -0,0 +1,42 @@
import { getPayload } from "payload";
import configPromise from "../payload.config";
async function run() {
try {
const payload = await getPayload({ config: configPromise });
const existing = await payload.find({
collection: "users",
where: { email: { equals: "marc@mintel.me" } },
});
if (existing.totalDocs > 0) {
console.log("User already exists, updating password...");
await payload.update({
collection: "users",
where: { email: { equals: "marc@mintel.me" } },
data: {
password: "Tim300493.",
},
});
console.log("Password updated.");
} else {
console.log("Creating user...");
await payload.create({
collection: "users",
data: {
email: "marc@mintel.me",
password: "Tim300493.",
name: "Marc Mintel",
},
});
console.log("User marc@mintel.me created.");
}
process.exit(0);
} catch (err) {
console.error("Failed to create user:", err);
process.exit(1);
}
}
run();