其他分享
首页 > 其他分享> > PlantUml With Database

PlantUml With Database

作者:互联网

目前博客园暂不支持Asciidoctor

下载模板文件并将[.xml]后缀移除:
https://files-cdn.cnblogs.com/files/meilin/PlantumlDatabase.iuml.xml

Table Of Content

1. PlantUml and Database

1.1. Table Structure

drop table if exists party;
create table party(
	id bigint(20) priamry key not null comment '标识',
	party_name varchar(100) not null comment '当事人名称',
	party_identification_no varchar(32) not null unique comment '当事人证照编号',
	creator bigint(20) unsigned not null comment '创建人',
	create_time datetime not null default currrent_timestamp comment '创建时间',
	editor bigint(20) unsigned comment '修改人',
	edit_time datetime default currrent_timestamp comment '修改时间',
	state tinyint(1) unsigned not null default 1 comment '标记:1:启用;0:禁用'
)engine=innodb default charset=utf8mb4 comment '当事人表';

1.2. Table Uml

party

1.3. Convert Adoc to Html5

asciidoctor -a toc=left -r asciidoctor-diagram fileName.adoc

1.4. Table Relationship

1.4.1. Table List
party with relationship
1.4.2. One to One
party_type -- party
1.4.3. One to Many/Many to One ( -→ )
party_type --> party
1.4.4. Many to Many
party "1" --> "*" party_type
party_type "1" --> "0..N" party

 

标签:1.4,comment,PlantUml,Database,Many,Table,party,null
来源: https://www.cnblogs.com/meilin/p/14429430.html