Closed jace closed 6 years ago
This is no longer relevant to Lastuser as we are removing functionality here, and Principal will not be implemented. Perhaps the only relevance is for clients, to track which user created a client. However, that too is in question as clients will be mandatorily owned by users when #232 is implemented.
Lastuser (and most HasGeek apps) currently use the
user_id
column to refer to the user who owns the given object.With the move to principals in #91, we need to disambiguate ownership (any principal can be an owner) from authorship (only a user can be an author as teams and organizations are non-human).
Proposal:
user_id
column to only refer to authorship. It continues to point to aUser
instance.principal_id
column that refers to thePrincipal
.merge_users
) should preserve theuser_id
column while changing the value of theprincipal_id
column.Alternative proposal: using
user_id
andprincipal_id
leaves some ambiguity on which is for what. Use the new column namesauthor_id
andowner_id
instead.