resop icon indicating copy to clipboard operation
resop copied to clipboard

Replace the 2 availability tables by a single one

Open mRoca opened this issue 5 years ago • 0 comments

We currently have 2 different table for availabilties: UserAvailability and CommissionableAssetAvailability. We also have 2 repositories and every request is duplicated.

We need to replace those 2 tables by a single one. Each availability must contain a userId OR an assetId

Availability
========
id
userId (nullable)
assetId (nullable)
start
end
status
createdAt
updatedAt
history

mRoca avatar Apr 11 '20 18:04 mRoca