* feat: refactor module joiner config and links generation * improve typings * WIP * WIP * WIP * rename type file * create link config * finish typings and add utils * improve links * WIP typings * finalize ExportModule utils * finalize ExportModule utils * fix: dml tests * improve and fixes * simplify typings with id changes * add toJSON * multiple fixes and entity builder fixes * fix currency searchable * fix tests * medusa service refactoring * cleanup * cleanup and fixes * make module name optional * renaming --------- Co-authored-by: Harminder Virk <virk.officials@gmail.com>
11 lines
311 B
TypeScript
11 lines
311 B
TypeScript
import { model } from "@medusajs/utils"
|
|
|
|
export default model.define("currency", {
|
|
code: model.text().searchable().primaryKey(),
|
|
symbol: model.text(),
|
|
symbol_native: model.text(),
|
|
name: model.text().searchable(),
|
|
decimal_digits: model.number().default(0),
|
|
rounding: model.bigNumber().default(0),
|
|
})
|