Demo

ငွေကြေးနှင့် လဲလှယ်နှုန်းများ

ငွေကြေးမျိုးစုံနှင့် လဲလှယ်နှုန်းများသည် core စွမ်းရည်ဖြစ်ပါသည်။ Class အမည်တွင် typo ရှိပါသည် — CurrencyExchangeRateEnity (“t” ပျောက်) — ထိုအမည်အတိုင်းပင် import လုပ်ရပါသည်။

CurrencyEntity

ဇယားမှာ currency ဖြစ်ပါသည်။

  • id: number — primary key
  • currency: string — အမည်အပြည့် (ဥပမာ US Dollar)
  • symbol: string — ဥပမာ $
  • code: string — ISO ကုဒ် (ဥပမာ USD)
  • decimalPlace: number — ပြသမည့် ဒဿမနေရာအရေအတွက်

CurrencyExchangeRateEnity

ဇယားမှာ currency_exchange_rate ဖြစ်ပါသည်။ Core တွင် class အမည်ကို Enity ဟု စာလုံးပေါင်းမှားထားပါသည်။

  • id: number — primary key
  • fromCurrencyId / toCurrencyId: number
  • rate: number — ပြောင်းလဲနှုန်း
  • fromCurrency / toCurrency: CurrencyEntity