[๊ณต์ ] exErd ํ ์ด๋ธ/์ธ๋ฑ์ค/๊ด๊ณ์ ์์ ๋์์ถ๋ ฅ ๋ฐฉ๋ฒ
exErd ํ ์ด๋ธ ์ ์์ ํ ํ๋ฆฟ ํ์ผ๊ณต์
\ํ ์ด๋ธ์ ์์\์ธ๋ฑ์ค์ ์์\๊ด๊ณ์ ์์ ๋์ ์ถ๋ ฅ
๊ด๋ จํ์ผ์ ์ฐพ๋ค์ฐพ๋ค ์์ด์ ๋ง๋ค์ด๋ณด์์ต๋๋ค(by Donz) ์๊ฐ๋ญ๋นํ์
์ฌ์ฉ๋ฐฉ๋ฒ
eclipse exErdํ๋ฌ๊ทธ์ธ ์ค์น -> eXERD ๋ฉ๋ด -> ๋ด๋ณด๋ด๊ธฐ -> ํ ํ๋ฆฟ -> ์ข์๋จ ํด๋๋ชจ์ -> ํ์ผ์ ํ -> ํ์ธ -> ์ดํ์คํ
์ถ๋ ฅ์์ )
| 1717. ๊ฒ์ํ๋๊ธ (TB_BOARD_CMMNT) | โป ๊ฒ์ํ๋๊ธ ๊ด๋ จ ํ ์ด๋ธ |
|
| ์ธ๋ฑ์ค๋ช | UIX_TB_BOARD_CMMNT | ์ ํ | UNIQUE | ๊ตฌ๋ถ | INDEX |
|---|
| ์์ฑ๋ช | ์ปฌ๋ผ๋ช | ๋ฐ์ดํฐ ํ์ | ์ ๋ ฌ |
|---|---|---|---|
| ๋๊ธ์์ | CMMNT_SEQ | NUMBER(5) | ASC |
| ์ธ๋ฑ์ค๋ช | PK_TB_BOARD_CMMNT | ์ ํ | UNIQUE | ๊ตฌ๋ถ | PK |
|---|
| ์์ฑ๋ช | ์ปฌ๋ผ๋ช | ๋ฐ์ดํฐ ํ์ | ์ ๋ ฌ |
|---|---|---|---|
| ๊ธ๋ฒํธ | SEQ | NUMBER(11) | ASC |
| ๋๊ธ์์ | CMMNT_SEQ | NUMBER(5) | ASC |
| (CO)ํํธ๋ID | PTNR_ID | VARCHAR(20) | ASC |
| ๊ด๊ณ๋ช | FK_TB_BOARD_TO_TB_BOARD_CMMNT | ๋ถ๋ชจ ํ ์ด๋ธ | TB_BOARD | ์์ ํ ์ด๋ธ | TB_BOARD_CMMNT |
|---|---|---|---|---|---|
| ์๋ณ ์ ํ | ์๋ณ | ๋ถ๋ชจ ์ฐจ์ | EXACTLY_ONE | ์์ ์ฐจ์ | ZERO_OR_MORE |
| ๋ถ๋ชจ ์ปฌ๋ผ | ์์ ์ปฌ๋ผ | ๋ฐ์ดํฐ ํ์ |
|---|---|---|
| SEQ | SEQ | NUMBER(11) |
| PTNR_ID | PTNR_ID | VARCHAR(20) |
ํ ํ๋ฆฟ ์ฝ๋
@begin-doc
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ํ ์ด๋ธ ์ ์์(HTML)</title>
<style type="text/css">
<!--
.border0{
width: 1024px;
page-break-before: always;
border: solid 0px white;
}
.entity{
width: 1024px;
margin-bottom: 10px;
page-break-before: always;
}
.entity-header tr td, .entity-header tr th{
text-align: left;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
.entity-header{
border-spacing: 0px;
border-top: solid 2px black;
border-bottom: solid 2px black;
margin:0px;
}
.column-list{
width: 100%;
border-spacing: 0px;
margin: 0px;
border-bottom: solid 2px black;
}
.column-list th{
border-bottom: solid 2px black;
border-top: solid 2px black;
text-align: left;
}
.column-list th, .column-list td{
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
.under-line{
border-bottom: solid 1px gray;
}
.right-line{
border-right: solid 1px gray;
}
.left-line{
border-left: solid 1px gray;
}
th{
background-color: #eee;
}
.root {
border-spacing: 0px;
width: 1024px;
}
.under-line {
border-bottom: solid 1px gray;
}
.right-line {
border-right: solid 1px gray;
}
.left-line {
border-left: solid 1px gray;
}
th {
background-color: #eee;
}
.header {
margin-bottom: 0px;
}
.footter {
margin-top: 0px;
margin-bottom: 10px;
border-bottom:solid 2px black;
}
tr.only-first-row td,tr.only-first-row th {
border-top: solid 2px black;
}
tr.first-row td,tr.first-row th {
border-top: solid 2px black;
border-bottom: solid 2px black;
}
tr.last-row td,tr.last-row th {
border-bottom: solid 2px black;
}
-->
</style>
<script type="text/javascript">
var cnt = 1;
</script>
</head>
<body>
<table class="entity" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" class="entity-header">
<tr>
<th class="under-line right-line" width="70px">์์ฑ์ผ</th>
<td class="under-line">2016/03/10</td>
</tr>
<tr>
<th class="under-line right-line">์์ฑ์</th>
<td class="under-line">Donz</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
${loop:schema}
</body>
</html>
@end-doc
@begin-schema
${loop:table(index)}
@end-schema
@begin-table
<table class="border0" cellpadding="0" cellspacing="0">
<tr>
<td><font size="5"><b><script type="text/javascript">document.write(cnt++);</script>. ${logicalName} (${physicalName})</b></font></td>
<td align="right"><font size="3">โป ${comment} ๊ด๋ จ ํ ์ด๋ธ</font></td>
</tr>
</table>
<br>
<table class="entity" cellpadding="0" cellspacing="0">
<tr>
<td>
<table class="column-list">
<tr>
<th class="right-line" width="40px">๋ฒํธ</th>
<th class="right-line">์ปฌ๋ผ๋ช </th>
<th class="right-line">์์ฑ๋ช </th>
<th class="right-line">๋๋ฉ์ธ</th>
<th class="right-line">๋ฐ์ดํฐํ์ </th>
<th class="right-line">NULL์ฌ๋ถ</th>
<th class="right-line">๊ธฐ๋ณธ๊ฐ</th>
<th>KEY</th>
</tr>
${loop:column}
</table>
</td>
</tr>
</table>
${loop:index}
${loop:foreignkey}
<br><br><br><br>
@end-table
@begin-column
<tr>
<td class="right-line" style="text-align:right;">${columnOrder}</td>
<td class="right-line">${physicalName}</td>
<td class="right-line">${logicalName}</td>
<td class="right-line">${domain}</td>
<td class="right-line">${dataType}</td>
<td class="right-line">${notNull}</td>
<td class="right-line">${defaultValue}</td>
<td>${pfk}</td>
</tr>
@end-column
@begin-index
<table class="root header">
<tr class="first-row">
<th class="right-line">์ธ๋ฑ์ค๋ช </th>
<td class="right-line">${physicalName}</td>
<th class="right-line">์ ํ</th>
<td class="right-line">${uniqueness}</td>
<th class="right-line">๊ตฌ๋ถ</th>
<td>${kind}</td>
</tr>
</table>
<table class="root footter">
<tr>
<th class="right-line under-line">์์ฑ๋ช </th>
<th class="right-line under-line">์ปฌ๋ผ๋ช </th>
<th class="right-line under-line">๋ฐ์ดํฐ ํ์ </th>
<th class="under-line">์ ๋ ฌ</th>
</tr>
${loop:index-column}
</table>
@end-index
@begin-index-column
<tr>
<td class="right-line">${logicalName}</td>
<td class="right-line">${physicalName}</td>
<td class="right-line">${dataType}</td>
<td>${sortDirection}</td>
</tr>
@end-index-column
@begin-foreignkey
<table class="root header">
<tr class="only-first-row">
<th class="right-line under-line">๊ด๊ณ๋ช </th>
<td class="right-line under-line"">${physicalName}</td>
<th class="right-line under-line"" >๋ถ๋ชจ ํ ์ด๋ธ</th>
<td class="under-line right-line">${parentTable.physicalName}</td>
<th class="right-line under-line"" >์์ ํ ์ด๋ธ</th>
<td class="under-line">${parent.physicalName}</td>
</tr>
<tr class="last-row">
<th class="right-line">์๋ณ ์ ํ</th>
<td class="right-line">${identifyKind}</td>
<th class="right-line">๋ถ๋ชจ ์ฐจ์</th>
<td class="right-line">${parentTable.cardinality}</td>
<th class="right-line">์์ ์ฐจ์</th>
<td>${childTable.cardinality}</td>
</tr>
</table>
<table class="root footter">
<tr>
<th class="right-line under-line">๋ถ๋ชจ ์ปฌ๋ผ</th>
<th class="right-line under-line">์์ ์ปฌ๋ผ</th>
<th class="under-line">๋ฐ์ดํฐ ํ์ </th>
</tr>
${loop:foreignkey-column}
</table>
@end-foreignkey
@begin-foreignkey-column
<tr>
<td class="right-line">${parentColumn.physicalName}</td>
<td class="right-line">${physicalName}</td>
<td>${dataType}</td>
</tr>
@end-foreignkey-column
exERD_แแ
ฆแแ
ตแแ
ณแฏแแ
ฅแผแแ
ดแแ
ฅ.template