Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #198 from gsainfoteam/master
Browse files Browse the repository at this point in the history
update : set entity type to float
  • Loading branch information
minjunj authored Jun 17, 2024
2 parents 9d2c641 + 81044f1 commit 8a733a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions src/record/entity/record.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ export class Record {
@PrimaryGeneratedColumn()
id: number;
//육각형 강의평가 테이블
@Column()
@Column({ type: 'float' })
difficulty: number; //난이도

@Column()
@Column({ type: 'float' })
strength: number; //강의력

@Column()
@Column({ type: 'float' })
helpful: number; //유익함

@Column()
@Column({ type: 'float' })
interest: number; //흥미

@Column()
@Column({ type: 'float' })
lots: number; //과제량

@Column()
@Column({ type: 'float' })
satisfy: number; //만족도
//리뷰
@Column({ type: 'varchar', length: 3000 })
review: string;

@Column({ default: 2 })
@Column({ default: 2, type: 'float' })
recommend: number; // 추천 1 비추천 0 표시 없음 2

@ManyToOne((Type) => Lecture, (lecture) => lecture.lecture_name, {
Expand Down
16 changes: 8 additions & 8 deletions src/scoring/entity/scoring.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,28 @@ export class Scoring {
@Column()
people: number;

@Column()
@Column({ type: 'float' })
diff_aver: number;

@Column()
@Column({ type: 'float' })
stren_aver: number;

@Column()
@Column({ type: 'float' })
help_aver: number;

@Column()
@Column({ type: 'float' })
inter_aver: number;

@Column()
@Column({ type: 'float' })
lots_aver: number;

@Column()
@Column({ type: 'float' })
sati_aver: number;

@Column()
@Column({ type: 'float' })
good: number;

@Column()
@Column({ type: 'float' })
bad: number;

// @Column()
Expand Down

0 comments on commit 8a733a9

Please sign in to comment.