Skip to content
Snippets Groups Projects
Commit d884e55f authored by Ronnie Friman's avatar Ronnie Friman
Browse files

moved score entity

parent 3606028b
No related branches found
No related tags found
3 merge requests!59Development to master,!36Development,!33Small fixes
...@@ -83,16 +83,6 @@ export class FP_HistoryEntity { ...@@ -83,16 +83,6 @@ export class FP_HistoryEntity {
faction_PowerUp: Faction_PowerUpEntity; faction_PowerUp: Faction_PowerUpEntity;
} }
@Entity('Score')
export class ScoreEntity {
@PrimaryGeneratedColumn('uuid') scoreId: string;
@Column({ type: 'float' }) score: number;
@Column({ type: 'timestamp' }) scoreTimeStamp: Timestamp;
@ManyToOne(type => FactionEntity, factionName => factionName.factionId)
faction: FactionEntity;
}
@Entity('GameGroup') @Entity('GameGroup')
export class GameGroupEntity { export class GameGroupEntity {
@PrimaryGeneratedColumn('uuid') id: string; @PrimaryGeneratedColumn('uuid') id: string;
......
import {
Entity,
PrimaryGeneratedColumn,
Column,
ManyToOne,
Timestamp,
CreateDateColumn,
} from 'typeorm';
import { FactionEntity } from '../faction/faction.entity';
@Entity('Score')
export class ScoreEntity {
@PrimaryGeneratedColumn('uuid') scoreId: string;
@Column({ type: 'float' }) score: number;
@CreateDateColumn({ type: 'timestamp' }) scoreTimeStamp: Timestamp;
@ManyToOne(type => FactionEntity, factionName => factionName.factionId)
faction: string;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment