Introduce UUID field for ExtensibleModel
Add a UUID field to the ExtensibleModel
base class.
It should default to a UUID version 4 random ID.
The ultimate goal is that every object in AlekSIS can be found only by using the UUID.
Things to clarify
- Is there a
shortuuid
field (as in the shortuuid Python module)?- If not, can a UUID from a UUID field be converted back and forth to a
shortuuid
?
- If not, can a UUID from a UUID field be converted back and forth to a
- Can weturn
ExtensibleModle
into aPolymorphicModel
without issues. so that the UUID field is in one database table, and other fields are in specific tables?- Will this break anything?
- Does it migrate cleanly?
- Can we then recover the concrete model instance only by filtering for the UUID?