heya! peeps, give me the power~ can i use user_id ...
# general
t
heya! peeps, give me the power~ can i use user_id as bigInteger without useridmapping?
r
Hey @tomita0022 not really. You will have to use the user id mapping feature for it.
t
thank you. @rp then i have to migrate original user data into supertokens, original ones use bigInteger, also has autoincrement. In useridmapping, can i do make external_id to be autoincrement?
supertokens support this feature?
r
You can set the extranal user id to anything you like. Its set via an api call you make, so when you make the api call, you can set it to anything that time
t
so you mean, i have to make api call to set external user_id for useridmapping? my objective is to remove user table in origin server, so i have to remain origin user_id for previous app logic and it has to be autoincremented by itself when i insert a record.
r
so you can maintain a counter of sorts somewhere and use that as the source of the next external user id when calling the API to map the supertokens user id to the external one
t
um,, that's what i thought.
anyway, thank you, i am so grateful for your support and the SuperTokens community.
r
happy to help ๐Ÿ™‚
t
it's me again, sorry to disturb u. is it okay if i maintain the counter of sorts in
key_value
table?
r
i would advice against that. You want to maintain a counter somewhere in your own schema / table.
t
why's that?
r
Cause we may change the schema in future versions and then it would cause migration issues for you
But anyway, itโ€™s up to you. Can do that if you want. Nothing will stop you
t
umm..i got it, thanks for your help.