I have an application where I've two models both models have same fields
- client
- buyer
I'm using separate models because client can also signs up as a buyer using the same email and vice versa. I don't want to use single model for both client and buyer with some checks like is_buyer/is_client. How do I achieve something like
class Client(AbstractUser):
email = Field()
password = Field()
class Buyer(AbstractUser):
email = Field()
password = Field()
AUTH_USER_MODEL=app.Client
AUTH_USER_MODEL=app.Buyer
Also I'm using simpleJWT library, so I can generate jwt when the client or buyer logins in.