更新模型

This commit is contained in:
shuzheng 2016-11-20 22:01:44 +08:00
parent c69536893f
commit 7dcffc533c
3 changed files with 160 additions and 192 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?PowerDesigner AppLocale="UTF16" ID="{22E867D0-73E2-4C77-BB68-28135519D681}" Label="" LastModificationDate="1479631642" Name="zheng" Objects="196" Symbols="34" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?> <?PowerDesigner AppLocale="UTF16" ID="{22E867D0-73E2-4C77-BB68-28135519D681}" Label="" LastModificationDate="1479650437" Name="zheng" Objects="196" Symbols="40" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
<!-- do not edit this file --> <!-- do not edit this file -->
<Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object"> <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@ -5484,7 +5484,7 @@ LABL 0 新宋体,8,N</a:FontList>
<a:Code>cms_comment</a:Code> <a:Code>cms_comment</a:Code>
<a:CreationDate>1478091704</a:CreationDate> <a:CreationDate>1478091704</a:CreationDate>
<a:Creator>shuzheng</a:Creator> <a:Creator>shuzheng</a:Creator>
<a:ModificationDate>1479631642</a:ModificationDate> <a:ModificationDate>1479650437</a:ModificationDate>
<a:Modifier>shuzheng</a:Modifier> <a:Modifier>shuzheng</a:Modifier>
<a:PhysicalOptions>ENGINE=InnoDB DEFAULT CHARSET=utf8mb4</a:PhysicalOptions> <a:PhysicalOptions>ENGINE=InnoDB DEFAULT CHARSET=utf8mb4</a:PhysicalOptions>
<a:TotalSavingCurrency/> <a:TotalSavingCurrency/>
@ -5508,11 +5508,11 @@ LABL 0 新宋体,8,N</a:FontList>
</o:Column> </o:Column>
<o:Column Id="o101"> <o:Column Id="o101">
<a:ObjectID>BC2A83B1-EEBB-434E-856C-1A622C7024E6</a:ObjectID> <a:ObjectID>BC2A83B1-EEBB-434E-856C-1A622C7024E6</a:ObjectID>
<a:Name>回复楼中楼编号回复楼中楼编号</a:Name> <a:Name>回复楼中楼编号</a:Name>
<a:Code>pid</a:Code> <a:Code>pid</a:Code>
<a:CreationDate>1478091704</a:CreationDate> <a:CreationDate>1478091704</a:CreationDate>
<a:Creator>shuzheng</a:Creator> <a:Creator>shuzheng</a:Creator>
<a:ModificationDate>1478097024</a:ModificationDate> <a:ModificationDate>1479649194</a:ModificationDate>
<a:Modifier>shuzheng</a:Modifier> <a:Modifier>shuzheng</a:Modifier>
<a:Comment>回复楼中楼编号回复楼中楼编号</a:Comment> <a:Comment>回复楼中楼编号回复楼中楼编号</a:Comment>
<a:DefaultValue>0</a:DefaultValue> <a:DefaultValue>0</a:DefaultValue>
@ -5989,10 +5989,11 @@ LABL 0 新宋体,8,N</a:FontList>
<a:Code>Reference_2</a:Code> <a:Code>Reference_2</a:Code>
<a:CreationDate>1478091704</a:CreationDate> <a:CreationDate>1478091704</a:CreationDate>
<a:Creator>shuzheng</a:Creator> <a:Creator>shuzheng</a:Creator>
<a:ModificationDate>1479631642</a:ModificationDate> <a:ModificationDate>1479650437</a:ModificationDate>
<a:Modifier>shuzheng</a:Modifier> <a:Modifier>shuzheng</a:Modifier>
<a:Cardinality>0..*</a:Cardinality> <a:Cardinality>0..*</a:Cardinality>
<a:DeleteConstraint>3</a:DeleteConstraint> <a:UpdateConstraint>2</a:UpdateConstraint>
<a:DeleteConstraint>2</a:DeleteConstraint>
<c:ParentTable> <c:ParentTable>
<o:Table Ref="o41"/> <o:Table Ref="o41"/>
</c:ParentTable> </c:ParentTable>

View File

@ -1,6 +1,6 @@
/*==============================================================*/ /*==============================================================*/
/* DBMS name: MySQL 5.0 */ /* DBMS name: MySQL 5.0 */
/* Created on: 2016/11/20 16:47:38 */ /* Created on: 2016/11/20 22:00:49 */
/*==============================================================*/ /*==============================================================*/
@ -222,7 +222,7 @@ alter table cms_comment add constraint FK_Reference_1 foreign key (article_id)
references cms_article (article_id) on delete cascade on update cascade; references cms_article (article_id) on delete cascade on update cascade;
alter table cms_comment add constraint FK_Reference_2 foreign key (pid) alter table cms_comment add constraint FK_Reference_2 foreign key (pid)
references cms_comment (comment_id) on delete set null; references cms_comment (comment_id) on delete cascade on update cascade;
alter table test_book add constraint FK_Reference_9 foreign key (user_id) alter table test_book add constraint FK_Reference_9 foreign key (user_id)
references test_user (user_id) on delete cascade on update cascade; references test_user (user_id) on delete cascade on update cascade;