Skip to content

Commit

Permalink
dx(blueprint): add snippet to create common structures
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Aug 1, 2023
1 parent cc82645 commit eb8029d
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .vscode/helper.code-snippets
Original file line number Diff line number Diff line change
@@ -1,10 +1,40 @@
{
"Common Structure": {
"scope": "markdown",
"prefix": "cs",
"scope": "plaintext",
"prefix": "entity",
"body": [
"hello $0",
"${1:placeholder}!"
"${1:entity_identifier} [",
"\tlabel = <",
"\t<table cellspacing=\"0\" border=\"0\" cellborder=\"1\">",
"\t\t<tr>",
"\t\t\t<td colspan=\"3\" bgcolor=\"red\">",
"\t\t\t\t<font color=\"white\">",
"\t\t\t\t\t${0:entity_name}",
"\t\t\t\t</font>",
"\t\t\t</td>",
"\t\t</tr>",
"\t\t<tr>",
"\t\t\t<td>PK</td>",
"\t\t\t<td align=\"left\">id</td>",
"\t\t\t<td align=\"left\">bigint</td>",
"\t\t</tr>",
"\t\t<tr>",
"\t\t\t<td>FK</td>",
"\t\t\t<td align=\"left\">${4:foreign_key_nmae}</td>",
"\t\t\t<td align=\"left\">bigint</td>",
"\t\t</tr>",
"\t\t<tr>",
"\t\t\t<td></td>",
"\t\t\t<td align=\"left\">",
"\t\t\t\t${2:property}<br align=\"left\"/>",
"\t\t\t</td>",
"\t\t\t<td align=\"left\">",
"\t\t\t\t${3:property_type}<br align=\"left\"/>",
"\t\t\t</td>",
"\t\t</tr>",
"\t</table>",
"\t>",
"]",
],
"description": ""
}
Expand Down

0 comments on commit eb8029d

Please sign in to comment.