stashing code
This commit is contained in:
1295
packages/logic/domains/currency/data/currencies.ts
Normal file
1295
packages/logic/domains/currency/data/currencies.ts
Normal file
File diff suppressed because it is too large
Load Diff
12
packages/logic/domains/currency/data/entities.ts
Normal file
12
packages/logic/domains/currency/data/entities.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import z from "zod";
|
||||
|
||||
// The base currency is always USD, so the ratio is relative to that
|
||||
|
||||
export const currencyModel = z.object({
|
||||
id: z.number(),
|
||||
currency: z.string(),
|
||||
code: z.string(),
|
||||
exchangeRate: z.number(),
|
||||
ratio: z.number(),
|
||||
});
|
||||
export type Currency = z.infer<typeof currencyModel>;
|
||||
Reference in New Issue
Block a user