created_at field where it will be automatically generated when the model object is created
updated_at field which is updated whenever the model objects is modified
Then change all models in the project to have this BaseModel as their parent (with exception of User model which needs both AbstractBaseUser and BaseModel as it's parent at the same time)
create a BaseModel that has these fields:
created_at
field where it will be automatically generated when the model object is createdupdated_at
field which is updated whenever the model objects is modifiedThen change all models in the project to have this BaseModel as their parent (with exception of User model which needs both AbstractBaseUser and BaseModel as it's parent at the same time)