Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom fields as a column #94

Open
Rokas0x opened this issue Jan 12, 2022 · 1 comment
Open

Add custom fields as a column #94

Rokas0x opened this issue Jan 12, 2022 · 1 comment

Comments

@Rokas0x
Copy link

Rokas0x commented Jan 12, 2022

Hi

I was wondering if it's possible to add custom fields as a column to the sessions table? Is there any specific way of doing that?

For example by default there are 3 columns: sid, sess and expired. Is there any way to add new columns like userid etc?

Column Type
userid int
sid character varying(255)
sess json
expired timestamp with time zone
@arielpollack
Copy link

arielpollack commented Jan 19, 2022

same request.
IMO it's legitimate to expect having the option to save more information on each row.
specifically in this case where we'll probably want to have a relation to our existing user table and having the option to disable all active sessions of a user in case of log out / deletion.

@Rokas0x Rokas0x closed this as completed Feb 24, 2023
@gx0r gx0r reopened this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants