我有一个包含表格Ticket的数据库:
[id, user_id, project_id, title, steps_to_reproduce_issue, expected_result, actual_result, additional_comments, ticket_attachment_id, status, priority, categories, date_created, date_modified]
这是将以下属性[title, steps_to_reproduce_the_issue, expected result, actual_result, additional_comments]
放入单独的表TicketDescription,然后为Ticket-TicketDescription表使用1-1关系,然后只将ticket_description_id添加到Ticket中的好方法吗?
答案 0 :(得分:1)
我希望我了解你的情况。
考虑到你有3次同一节目。 (即不同的时间) - 你最好重复使用TicketDescription 3次,对吧?
因此,在我看来,最好使用1 to many
关系,而不是每次描述都声明。
充分考虑田野的分布。