Home > Q&A > body text
*ptr2019-04-13 16:15:58
2 ways:
1, define the $insert attribute in the model, declare the default value of the user_id field
2, set the default value in the table default 0