If an app has multiple models with the same field, whats the best practice for keeping things DRY?

For example, if I have 3 models that look like this: class CallLog(models.Model): lead_id = models.BigIntegerField("Lead ID") # other fields class EmailLog(models.Model): lead_id = models.BigIntegerField("Lead ID") # other fields class TextLog(models.Model): lead_id = models.BigIntegerField("Lead ID") # other fields Do I add lead_id to each model individually or is there a way to only type it… Read More If an app has multiple models with the same field, whats the best practice for keeping things DRY?

How do i divide BigIntegers in kotlin? (I have tried div() and divideAndRemainder())

I am trying to divide two Big Integer values and it does not seem to be working. I have tried BigIntegervalue1.div(BigIntegervalue2) and BigIntegervalue1.divideAndRemainder(BigIntegervalue2). I am getting a type mismatch Error when I thought I could declare remainder and quotient with divideAndRemainder which would give me BigInteger Here is the full code: package converter import kotlin.system.exitProcess… Read More How do i divide BigIntegers in kotlin? (I have tried div() and divideAndRemainder())