tscelsi
03/02/2022, 1:41 AMScott P
03/02/2022, 1:47 AMtscelsi
03/02/2022, 1:49 AMScott P
03/02/2022, 1:56 AMauthenticated
role indicates only that the user can access the platform, and I believe it's setup to prevent users doing really dangerous things (like dropping tables). In general, you don't want anyone who's logging into the database to be anything except authenticated
.
One solution to have 'roles' within your application would be to create a roles
table with the various permissions you need. For example, if you're making a blog website with people who can add content, edit content and delete content, you'd have can_add
, can_edit
, and can_delete
columns.
You might then have a public.users
table which has a belongs_to_group
column which is linked to the roles
table.tscelsi
03/02/2022, 1:57 AM