Demo

အထောက်အထားနှင့် ဝင်ရောက်ခွင့်

အသုံးပြုသူ၊ အခန်းကဏ္ဍနှင့် ဌာနခွဲများသည် platform ၏ ဝင်ရောက်ခွင့် မော်ဒယ်ဖြစ်ပါသည်။ ဖတ်ခြင်းနှင့် ရေးခြင်းအတွက် UserService / RoleService / BranchService ကို ဦးစားပေးရပါသည်။

UserEntity

ဇယားမှာ user ဖြစ်ပါသည် — စနစ်အသုံးပြုသူများကို သိမ်းပါသည်။

  • id: number — primary key
  • name: string — အမည်အပြည့်
  • username: string — ထူးခြားသော login အမည်
  • isActive: boolean
  • roleId: number — သတ်မှတ်ထားသော အခန်းကဏ္ဍ
  • role: RoleEntity
  • branches: BranchEntity[]
  • branchLimit: boolean — ဌာနခွဲဖြင့် ဝင်ရောက်ခွင့် ကန့်သတ်ခြင်း

RoleEntity

ဇယားမှာ role ဖြစ်ပါသည် — အခန်းကဏ္ဍနှင့် ခွင့်ပြုချက်များကို သိမ်းပါသည်။

  • id: number — primary key
  • name: string — ဥပမာ Admin, Manager
  • permissions: PermissionEntity[]
  • users: UserEntity[]

BranchEntity

ဇယားမှာ branch ဖြစ်ပါသည် — ကုမ္ပဏီ ဌာနခွဲ / တည်နေရာများကို သိမ်းပါသည်။

  • id: number — primary key
  • name: string
  • isActive: boolean