Slim 4 Skeleton created_user_id - what's it for?

Just curious what the created_user_id and updated_user_id int columns are for in the example user table migration.

I assume you are referring to the initial database migration script of the (unofficial) odan/slim4-skeleton, correct?

These fields could be used to store the user who created or made the last change to this record. Normally, you store the user ID of the logged-in user there. With an API, however, these fields are usually not needed and can be omitted completely.

By the way, you can also ask questions about this specific repository directly under Issues.

1 Like