Now I create a table to record users information,and for every user, I will create a table to record their behavioral record when they register in my website. How I can achieve this, what I do is create a table(the table name is userid_behavioral) when a new user register in my website.
Asked
Active
Viewed 182 times
1 Answers
-2
You should use gorm library for achieving this. Because it has useful callbacks.
http://doc.gorm.io/callbacks.html
Gorm has a callback for certain event. You can use AfterCreate callback.

ahmetlutfu
- 325
- 2
- 9
-
consider adding details – Inder Mar 18 '19 at 20:49