Skip to content

Commit

Permalink
feat: Streamline tag short names
Browse files Browse the repository at this point in the history
  • Loading branch information
stormofice committed Oct 3, 2023
1 parent 064a50d commit 3f0eb4d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internal/database/seeds/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

func seedTags(ctx context.Context, client *ent.Client) error {
err := client.Tag.CreateBulk(
client.Tag.Create().SetID("1").SetName("Farbstoff").SetDescription("mit Farbstoff"),
client.Tag.Create().SetID("2").SetName("Koffein").SetDescription("mit Koffein"),
client.Tag.Create().SetID("1").SetName("Farbstoff").SetDescription("mit Farbstoff").SetShortName("🎨"),
client.Tag.Create().SetID("2").SetName("Koffein").SetDescription("mit Koffein").SetShortName("☕"),
client.Tag.Create().SetID("4").SetName("Konservierungsstoffen").SetDescription("mit Konservierungsstoffen"),
client.Tag.Create().SetID("5").SetName("Süßungsmittel").SetDescription("mit Süßungsmittel"),
client.Tag.Create().SetID("7").SetName("Antioxidationsmittel").SetDescription("mit Antioxidationsmittel"),
Expand All @@ -30,24 +30,24 @@ func seedTags(ctx context.Context, client *ent.Client) error {
client.Tag.Create().SetID("V").SetName("Vegetarisch").SetDescription("Vegetarisch").SetShortName("🥕").SetPriority(schema.High),
client.Tag.Create().SetID("Veg").SetName("Vegan").SetDescription("Vegan").SetShortName("🌱").SetPriority(schema.High),
client.Tag.Create().SetID("MSC").SetName("MSC Fisch").SetDescription("MSC Fisch").SetShortName("🐟").SetPriority(schema.High),
client.Tag.Create().SetID("Gf").SetName("Glutenfrei").SetDescription("Glutenfrei").SetShortName("Glutenfrei").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("CO2").SetName("CO2-Neutral").SetDescription("CO2-Neutral").SetShortName("CO2-Neutral").SetPriority(schema.Medium),
client.Tag.Create().SetID("Bio").SetName("Bio").SetDescription("Bio").SetShortName("Bio").SetPriority(schema.Medium),
client.Tag.Create().SetID("MV").SetName("MensaVital").SetDescription("MensaVital").SetShortName("MensaVital").SetPriority(schema.Medium),
client.Tag.Create().SetID("Gf").SetName("Glutenfrei").SetDescription("Glutenfrei").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("CO2").SetName("CO2-Neutral").SetDescription("CO2-Neutral").SetPriority(schema.Medium),
client.Tag.Create().SetID("Bio").SetName("Bio").SetDescription("Bio").SetPriority(schema.Medium),
client.Tag.Create().SetID("MV").SetName("MensaVital").SetDescription("MensaVital").SetPriority(schema.Medium),
client.Tag.Create().SetID("A").SetName("Alkohol").SetDescription("Alkohol").SetShortName("🍺").SetPriority(schema.Medium).SetIsAllergy(true),

client.Tag.Create().SetID("Wz").SetName("Weizen").SetDescription("Weizen (Gluten)").SetShortName("🌾").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("Ro").SetName("Roggen").SetDescription("Roggen (Gluten)").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("Ge").SetName("Gerste").SetDescription("Gerste (Gluten)").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("Hf").SetName("Hafer").SetDescription("Hafer (Gluten)").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("Kr").SetName("Krebstiere").SetDescription("Krebstiere").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Kr").SetName("Krebstiere").SetDescription("Krebstiere").SetShortName("🦀").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Ei").SetName("Eier").SetDescription("Eier").SetShortName("🥚").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Fi").SetName("Fisch").SetDescription("Fisch").SetShortName("🐟").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Er").SetName("Erdnüsse").SetDescription("Erdnüsse").SetShortName("🥜").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("So").SetName("Soja").SetDescription("Soja").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Mi").SetName("Milch/Laktose").SetDescription("Milch/Laktose").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("Mi").SetName("Milch/Laktose").SetDescription("Milch/Laktose").SetShortName("🥛").SetPriority(schema.Medium).SetIsAllergy(true),
client.Tag.Create().SetID("Man").SetName("Mandeln").SetDescription("Mandeln").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Hs").SetName("Haselnüsse").SetDescription("Haselnüsse").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Hs").SetName("Haselnüsse").SetDescription("Haselnüsse").SetShortName("🌰").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Wa").SetName("Walnüsse").SetDescription("Walnüsse").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Ka").SetName("Cashewnüsse").SetDescription("Cashewnüsse").SetPriority(schema.Low).SetIsAllergy(true),
client.Tag.Create().SetID("Pe").SetName("Pekanüsse").SetDescription("Pekanüsse").SetPriority(schema.Low).SetIsAllergy(true),
Expand Down

0 comments on commit 3f0eb4d

Please sign in to comment.