Ramin-RX7 / CafeMenu

Café management website with custom dashboard panel for staff
MIT License
2 stars 4 forks source link

Create BaseModel for all models #111

Closed Ramin-RX7 closed 1 year ago

Ramin-RX7 commented 1 year ago

create a BaseModel that has these fields:

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)

Ramin-RX7 commented 1 year ago

completed in #110