feat: more currency support (#520)

* add multiple new currencies

* add multiple new currencies

* remove duplicate yen
This commit is contained in:
Hayden 2023-07-31 05:59:36 -08:00 committed by GitHub
parent 371fc0a6af
commit c5ae6b17f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 103 additions and 123 deletions

View file

@ -29,7 +29,37 @@ func (Group) Fields() []ent.Field {
NotEmpty(),
field.Enum("currency").
Default("usd").
Values("usd", "eur", "gbp", "jpy", "zar", "aud", "nok", "nzd", "sek", "dkk", "inr", "rmb", "bgn", "chf", "pln", "try", "ron", "czk"),
Values(
"aed",
"aud",
"bgn",
"brl",
"cad",
"chf",
"czk",
"dkk",
"eur",
"gbp",
"hkd",
"idr",
"inr",
"jpy",
"krw",
"mxn",
"nok",
"nzd",
"pln",
"rmb",
"ron",
"rub",
"sar",
"sek",
"sgd",
"thb",
"try",
"usd",
"zar",
),
}
}
@ -70,7 +100,6 @@ func (g GroupMixin) Fields() []ent.Field {
}
return nil
}
func (g GroupMixin) Edges() []ent.Edge {