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
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