-
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.
- table setting
- Loading branch information
Showing
7 changed files
with
122 additions
and
3 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,10 @@ | ||
export enum businessType { | ||
yuseongMagic = '유성매직네트워크', | ||
recordImage = '기록 영상', | ||
publicOpinion = '공론', | ||
alleyEconomy = '골목경제', | ||
careSystem = '돌봄체계 구축', | ||
olderLeisure = '노년층 여가활동', | ||
sharePlace = '공유공간 활성화', | ||
livinglab = '리빙랩' | ||
} |
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 clubType { | ||
residentMeeting = '주민모임', | ||
npPrivateOrg = '비영리민간단체', | ||
npCorporation = '비영리법인' | ||
} |
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 loc { | ||
|
||
} |
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,101 @@ | ||
import { Column, Entity, PrimaryColumn, PrimaryGeneratedColumn } from "typeorm"; | ||
import { businessType } from "../enums/businessType.enum.js"; | ||
import { clubType } from "../enums/clubType.enum.js"; | ||
import { loc } from "../enums/loc.enum.js"; | ||
|
||
@Entity() | ||
export class Business { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
businessType!: businessType; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
clubName!: string; | ||
|
||
@Column({ | ||
type: 'boolean' | ||
}) | ||
isContiguous!: boolean; | ||
|
||
@Column({ | ||
type: 'varchar', | ||
nullable: true | ||
}) | ||
contiguousLocation?: loc; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
businessName!: string; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
totalBudget!: number; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
subsidy!: number; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
selfInflicted!: number; | ||
|
||
@Column({ | ||
type: 'varchar' | ||
}) | ||
clubType!: clubType; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
countOfManager!: number; | ||
|
||
@Column({ | ||
type: 'integer', | ||
default: 0 | ||
}) | ||
countOfMember!: number; | ||
|
||
@Column({ | ||
type: 'varchar', | ||
nullable: true | ||
}) | ||
clubAddress?: string; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
clubRegisterNumber!: number; | ||
|
||
@Column({ | ||
type: 'boolean', | ||
default: false | ||
}) | ||
isIncludingInfo!: boolean; | ||
|
||
@Column({ | ||
type: 'boolean', | ||
default: false | ||
}) | ||
isIncludingMemberList!: boolean; | ||
|
||
@Column({ | ||
type: 'boolean', | ||
default: false | ||
}) | ||
isIncludingPlan!: boolean; | ||
|
||
@Column({ | ||
type: 'integer' | ||
}) | ||
year!: 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
Empty file.