-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from DEV-dsm/databaseSetting
(#3) 🗃️ :: db ::Table Setting
- Loading branch information
Showing
35 changed files
with
1,156 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum Amount { | ||
increase = '증가', | ||
nothing = '변화 없음', | ||
decrease = '감소' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export enum BusinessType { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export enum ClubType { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Key { | ||
budgetSum = '예산액', | ||
execution = '집행액' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Loc { | ||
mannyeon = '만년동', | ||
gajang = '가장동', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export enum Related { | ||
veryDislike = '매우 그렇지 않다', | ||
not = '그렇지 않다', | ||
normal = '보통이다', | ||
yes = '그렇다', | ||
veryTrue = '매우 그렇다' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Sex { | ||
male = '남성', | ||
female = '여성' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Total { | ||
num = '총횟수', | ||
people = '총인원' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum Type { | ||
judge = '심사', | ||
choice = '선정', | ||
fail = '탈락' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Column, Entity, JoinColumn, OneToOne, PrimaryColumn, Relation } from "typeorm"; | ||
import { Amount } from "../enums/amount.enum.js"; | ||
import { Related } from "../enums/related.enum.js"; | ||
import { PerformanceResult } from "./performanceResult.entity.js"; | ||
|
||
@Entity() | ||
export class AchievementStatus { | ||
// 기대 사항 달성 정도 | ||
|
||
@PrimaryColumn() | ||
id!: number; | ||
|
||
@OneToOne( | ||
() => PerformanceResult, | ||
performanceResult => performanceResult.achievementStatus | ||
) | ||
@JoinColumn({ name: 'id' }) | ||
performanceResult!: Relation<PerformanceResult>; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
changedMember!: Relation<Amount>; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
increaseMain!: Relation<Amount>; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
increaseNew!: Relation<Amount>; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
changedRelation!: Relation<Related>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "typeorm"; | ||
import { BusinessPlan } from "./businessPlan.entity.js"; | ||
|
||
@Entity() | ||
export class BudgetDetail { | ||
// 예산 상세 | ||
|
||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@ManyToOne( | ||
() => BusinessPlan, | ||
businessPlan => businessPlan.budgetDetail | ||
) | ||
@JoinColumn({ name: 'id' }) | ||
businessPlan!: BusinessPlan; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
budgetHead!: string; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
budgetOrganization!: string; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
subsidy!: string; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
subsidyBudget!: number; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
self!: string; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
selfBudget!: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { Column, Entity, JoinColumn, OneToOne, PrimaryColumn, Relation } from "typeorm"; | ||
import { BusinessPlan } from "./businessPlan.entity.js"; | ||
|
||
@Entity() | ||
export class BudgetPlan { | ||
// 예산 기획 | ||
|
||
@PrimaryColumn({ | ||
type: 'integer' | ||
}) | ||
id!: number; | ||
|
||
@OneToOne( | ||
() => BusinessPlan, | ||
businessPlan => businessPlan.budgetPlan | ||
) | ||
@JoinColumn({ name: 'id' }) | ||
businessPlan!: Relation<BusinessPlan>; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
subsidyMeal?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
subsidyActivity?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
subsidyOperating?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
subsidyFacility?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
selfMeal?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
selfActivity?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
selfOperating?: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
nullable: true | ||
}) | ||
selfFacility?: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm"; | ||
import { Key } from "../enums/key.enum.js"; | ||
import { ResultReport } from "./resultReport.entity.js"; | ||
|
||
@Entity() | ||
export class BudgetResult { | ||
// 예산 상세 결과 | ||
|
||
@PrimaryColumn() | ||
id!: number; | ||
|
||
@ManyToOne( | ||
() => ResultReport, | ||
resultReport => resultReport.budgetResult | ||
) | ||
@JoinColumn({ name: 'id' }) | ||
resultReport!: ResultReport; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
subsidy!: number; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
burden!: number; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
key!: Key; | ||
} |
Oops, something went wrong.