Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created November 10, 2025 18:43
Show Gist options
  • Select an option

  • Save codigoconjuan/74a0dce3302380b22d31d3407870f910 to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/74a0dce3302380b22d31d3407870f910 to your computer and use it in GitHub Desktop.
Seeding con Prisma
export const categories = [
{
slug: "cafe",
name: "Café"
},
{
slug: "hamburguesa",
name: "Hamburguesas"
},
{
slug: "pizza",
name: "Pizzas"
},
{
slug: "dona",
name: "Donas"
},
{
slug: "pastel",
name: "Pasteles"
},
{
slug: "galletas",
name: "Galletas"
}
]
export const products = [
{
name: "Café Caramel con Chocolate",
price: 59.9,
image: "cafe_01",
categoryId: 1
},
{
name: "Café Frio con Chocolate Grande",
price: 49.9,
image: "cafe_02",
categoryId: 1
},
{
name: "Latte Frio con Chocolate Grande",
price: 54.9,
image: "cafe_03",
categoryId: 1
},
{
name: "Latte Frio con Chocolate Grande",
price: 54.9,
image: "cafe_04",
categoryId: 1
},
{
name: "Malteada Fria con Chocolate Grande",
price: 54.9,
image: "cafe_05",
categoryId: 1
},
{
name: "Café Mocha Caliente Chico",
price: 39.9,
image: "cafe_06",
categoryId: 1
},
{
name: "Café Mocha Caliente Grande con Chocolate",
price: 59.9,
image: "cafe_07",
categoryId: 1
},
{
name: "Café Caliente Capuchino Grande",
price: 59.9,
image: "cafe_08",
categoryId: 1
},
{
name: "Café Mocha Caliente Mediano",
price: 49.9,
image: "cafe_09",
categoryId: 1
},
{
name: "Café Mocha Frio con Caramelo Mediano",
price: 49.9,
image: "cafe_10",
categoryId: 1
},
{
name: "Café Mocha Frio con Chocolate Mediano",
price: 49.9,
image: "cafe_11",
categoryId: 1
},
{
name: "Café Espresso",
price: 29.9,
image: "cafe_12",
categoryId: 1
},
{
name: "Café Capuchino Grande con Caramelo",
price: 59.9,
image: "cafe_13",
categoryId: 1
},
{
name: "Café Caramelo Grande",
price: 59.9,
image: "cafe_14",
categoryId: 1
},
{
name: "Paquete de 3 donas de Chocolate",
price: 39.9,
image: "donas_01",
categoryId: 4
},
{
name: "Paquete de 3 donas Glaseadas",
price: 39.9,
image: "donas_02",
categoryId: 4
},
{
name: "Dona de Fresa ",
price: 19.9,
image: "donas_03",
categoryId: 4
},
{
name: "Dona con Galleta de Chocolate ",
price: 19.9,
image: "donas_04",
categoryId: 4
},
{
name: "Dona glass con Chispas Sabor Fresa ",
price: 19.9,
image: "donas_05",
categoryId: 4
},
{
name: "Dona glass con Chocolate ",
price: 19.9,
image: "donas_06",
categoryId: 4
},
{
name: "Dona de Chocolate con MÁS Chocolate ",
price: 19.9,
image: "donas_07",
categoryId: 4
},
{
name: "Paquete de 3 donas de Chocolate ",
price: 39.9,
image: "donas_08",
categoryId: 4
},
{
name: "Paquete de 3 donas con Vainilla y Chocolate ",
price: 39.9,
image: "donas_09",
categoryId: 4
},
{
name: "Paquete de 6 Donas",
price: 69.9,
image: "donas_10",
categoryId: 4
},
{
name: "Paquete de 3 Variadas",
price: 39.9,
image: "donas_11",
categoryId: 4
},
{
name: "Dona Natural con Chocolate",
price: 19.9,
image: "donas_12",
categoryId: 4
},
{
name: "Paquete de 3 Donas de Chocolate con Chispas",
price: 39.9,
image: "donas_13",
categoryId: 4
},
{
name: "Dona Chocolate y Coco",
price: 19.9,
image: "donas_14",
categoryId: 4
},
{
name: "Paquete Galletas de Chocolate",
price: 29.9,
image: "galletas_01",
categoryId: 6
},
{
name: "Paquete Galletas de Chocolate y Avena",
price: 39.9,
image: "galletas_02",
categoryId: 6
},
{
name: "Paquete de Muffins de Vainilla",
price: 39.9,
image: "galletas_03",
categoryId: 6
},
{
name: "Paquete de 4 Galletas de Avena",
price: 24.9,
image: "galletas_04",
categoryId: 6
},
{
name: "Galletas de Mantequilla Variadas",
price: 39.9,
image: "galletas_05",
categoryId: 6
},
{
name: "Galletas de sabores frutales",
price: 39.9,
image: "galletas_06",
categoryId: 6
},
{
name: "Hamburguesa Sencilla",
price: 59.9,
image: "hamburguesas_01",
categoryId: 2
},
{
name: "Hamburguesa de Pollo",
price: 59.9,
image: "hamburguesas_02",
categoryId: 2
},
{
name: "Hamburguesa de Pollo y Chili",
price: 59.9,
image: "hamburguesas_03",
categoryId: 2
},
{
name: "Hamburguesa Queso y Pepinos",
price: 59.9,
image: "hamburguesas_04",
categoryId: 2
},
{
name: "Hamburguesa Cuarto de Libra",
price: 59.9,
image: "hamburguesas_05",
categoryId: 2
},
{
name: "Hamburguesa Doble Queso",
price: 69.9,
image: "hamburguesas_06",
categoryId: 2
},
{
name: "Hot Dog Especial",
price: 49.9,
image: "hamburguesas_07",
categoryId: 2
},
{
name: "Paquete 2 Hot Dogs",
price: 69.9,
image: "hamburguesas_08",
categoryId: 2
},
{
name: "4 Rebanadas de Pay de Queso",
price: 69.9,
image: "pastel_01",
categoryId: 5
},
{
name: "Waffle Especial",
price: 49.9,
image: "pastel_02",
categoryId: 5
},
{
name: "Croissants De la casa",
price: 39.9,
image: "pastel_03",
categoryId: 5
},
{
name: "Pay de Queso",
price: 19.9,
image: "pastel_04",
categoryId: 5
},
{
name: "Pastel de Chocolate",
price: 29.9,
image: "pastel_05",
categoryId: 5
},
{
name: "Rebanada Pastel de Chocolate",
price: 29.9,
image: "pastel_06",
categoryId: 5
},
{
name: "Pizza Spicy con Doble Queso",
price: 69.9,
image: "pizzas_01",
categoryId: 3
},
{
name: "Pizza Jamón y Queso",
price: 69.9,
image: "pizzas_02",
categoryId: 3
},
{
name: "Pizza Doble Queso",
price: 69.9,
image: "pizzas_03",
categoryId: 3
},
{
name: "Pizza Especial de la Casa",
price: 69.9,
image: "pizzas_04",
categoryId: 3
},
{
name: "Pizza Chorizo",
price: 69.9,
image: "pizzas_05",
categoryId: 3
},
{
name: "Pizza Hawaiana",
price: 69.9,
image: "pizzas_06",
categoryId: 3
},
{
name: "Pizza Tocino",
price: 69.9,
image: "pizzas_07",
categoryId: 3
},
{
name: "Pizza Vegetales y Queso",
price: 69.9,
image: "pizzas_08",
categoryId: 3
},
{
name: "Pizza Pepperoni y Queso",
price: 69.9,
image: "pizzas_09",
categoryId: 3
},
{
name: "Pizza Aceitunas y Queso",
price: 69.9,
image: "pizzas_10",
categoryId: 3
},
{
name: "Pizza Queso, Jamón y Champiñones",
price: 69.9,
image: "pizzas_11",
categoryId: 3
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment