Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Files

22 lines (15 loc) · 619 Bytes

File metadata and controls

22 lines (15 loc) · 619 Bytes

User Model

The User DB Model specs

Fields (Table columns)

field type status description (verbose name)
mobile PhoneNumber required The user's mobile number
name Char optional user's name

Methods

  • get_full_name
  • get_short_name
  • __str__ gets instance as string
  • __repr__ representation of instance in some contexts

Checklist

  • A user must have a type (superuser, shop_manager, cashier, etc...) when created
  • A Token must be generated on user creation