I have the following database design:
An E-Report
has one QAP
which has some Requirement
s. A QAP
and its Requirement
s can be used in more than one E-Report
.
Every Requirement
will have a Yes/No confirmation in each E-Report. I've added EReportReq
to store requirements confirmations values (users will set these values).
And also, each Requirement
will have more than one Image
on each E-Report
. EReportReqImg
will store Image
and Requirement
relationship.
If you need more details about this database model, please tell me.
My question is about EReportReq
table. I'm not sure if I need a column as primary key (EReportReqId
) or I can use eReportId
and requirementId
as primary key.
If I use these two columns, eReportId
and requirementId
as primary key, I will need to add these two to EReportReqImg
table, so I don't know if this approach is better than mine.
What do you think?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…