M
M
Maxim2020-11-11 09:51:24
Problem-Based Design
Maxim, 2020-11-11 09:51:24

How is the User entity usually implemented in the context of the Application User?

Greetings!

Tell me, what does the User class of most projects usually implement in itself? Where User is just a site user (admin, site visitor, authorized site visitor, etc.) who can read, write, delete, update data.
Does it have to do anything at all, or does it just act as a dumb store of value objects?
As I understand it, for example, for authorization, user registration, a service class is usually made that registers this user, authorizes, etc., since the User does not authorize or register himself.

And, if you know examples that could be useful to me (preferably in Typescript / JS), please give a link to Github.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey P, 2020-11-11
@max_shane

Depends on business logic, application architecture, future plans for the application, needs of application users.
Here is an example of a simple user model implementation:
https://medium.com/javascript-in-plain-english/cre...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question