hasansezertasan/opinionated-mixins

Model Proposal: User

Opened this issue · 1 comments

Why do you need this model? What does it solve? Please describe.
Almost every application requires a user model. It's the most copied/pasted, rethought, and restructured model that ever existed.

Describe the solution you'd like
There are a lot of user authentication/authorization systems that are already used in thousands of projects. We can get inspired by looking at them.

Fields

Field Name Python Type Description Unique Required Index
username str Unique username. Yes Yes Yes
hashed_password str Hashed Password. No Yes No
email str Email Address of the user. Yes No Yes
date_email_verified datetime Date when email was verified. No No No

Checkout: