var import_db = require("./db");
async function seed() {
  const defaultOTelTraceSpanTypes = [{
    name: "Generic",
    colour: "999999"
  }, {
    name: "HTTP",
    colour: "1A8CFF"
  }, {
    name: "GraphQL",
    colour: "E600E6"
  }, {
    name: "SQL",
    colour: "FF1AC6"
  }, {
    name: "Prisma",
    colour: "8000FF"
  }, {
    name: "CedarJS Service",
    colour: "FF6600"
  }, {
    name: "CedarJS Function",
    colour: "00B33C"
  }];
  for (const spanType of defaultOTelTraceSpanTypes) {
    const spanTypeExists = await import_db.db.oTelTraceSpanType.findUnique({
      where: {
        name: spanType.name
      }
    });
    if (!spanTypeExists) {
      await import_db.db.oTelTraceSpanType.create({
        data: {
          id: spanType.name.toUpperCase().replace(/ /g, "_"),
          name: spanType.name,
          colour: spanType.colour
        }
      });
    }
  }
}
seed();
//# sourceMappingURL=seed.js.map
