laravel有很多关系数据库设计

rggaifut  于 2021-06-20  发布在  Mysql
关注(0)|答案(0)|浏览(171)

我有两个表格提案和提案附件。每个提案都有一个docx文件和pdf文件。让我知道下表的设计是正确的
提案和提案附件

| id | proposalNo | ProposalTitle | Status |
    --------------------------------------------
    | 1  |  PRO 123  | sample         | 0      |
    --------------------------------------------

-----------------------------------------------------------------------
| id | proposal_id | version_ID |  Status  |    fileName    | filetype   | 
------------------------------------------------------------------------
|  1  |        1   | 1          |     1    |  Sample1.docx  | doctype   |
------------------------------------------------------------------------
|  2  |        1   | 1          |     1    |  Sample1.pdf   |   pdf     |
------------------------------------------------------------------------
|  3  |        1   | 2          |     1    |  Sample2.docx  | doctype   |
------------------------------------------------------------------------  
|  4  |        1   | 2          |     1    |  Sample2.pdf   | pdf       |
------------------------------------------------------------------------

应该用like

|id| proposal_id|version_ID |Status|filetitle|fileNamedoc|fileNamePDF

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题