Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take01 データベース設計 #1

Merged
merged 7 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Node.js CI with npm in app directory

on:
push:
branches: [ "main" ]
branches: [ '*' ]
pull_request:
branches: [ "main" ]

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ public
docker/schemaspy/output
docker/mssql/data
docker/mssql/log

tmp
2 changes: 2 additions & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ out/

### VS Code ###
.vscode/

**/src/main/java/**/autogen
6 changes: 3 additions & 3 deletions api/src/main/resources/autogen/generatorConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@

<!-- SELECT 結果等を格納するドメインモデルを生成する設定 -->
<!-- targetProjectには、プロジェクトフォルダも含めることに注意 -->
<javaModelGenerator targetPackage="com.example.sms.model" targetProject="sample-project/src/main/java">
<javaModelGenerator targetPackage="com.example.sms.infrastructure.autogen" targetProject="src/main/java">
<property name="trimStrings" value="true" />
</javaModelGenerator>

<!-- SQL 設定が記述された XML を生成する設定 -->
<sqlMapGenerator targetPackage="com.example.repository" targetProject="sample-project/src/main/resources">
<sqlMapGenerator targetPackage="com.example.sms.infrastructure.autogen" targetProject="src/main/java">
</sqlMapGenerator>
<!-- マッパークラスを生成する設定 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.example.repository" targetProject="sample-project/src/main/java">
<javaClientGenerator type="XMLMAPPER" targetPackage="com.example.sms.infrastructure.autogen" targetProject="src/main/java">
</javaClientGenerator>

<!-- コードを生成するテーブルを指定 -->
Expand Down
760 changes: 760 additions & 0 deletions api/src/main/resources/db/migration/h2/V0.00__schema_startup.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/src/test/resources/jig.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
jig.erd.output.directory=./build/jig-erd
jig.erd.output.prefix=library-er
jig.erd.output.format=png
jig.erd.output.format=svg
24 changes: 24 additions & 0 deletions db/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions db/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions db/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
moduleFileExtensions: [
"ts",
"js"
],
transform: {
"^.+\\.ts$": ["ts-jest", { tsconfig: "tsconfig.json" }]
},
testMatch: [
"**/**/*.test.ts"
]
};
Loading
Loading