Skip to content
Snippets Groups Projects

Lippuboksi

Merged Ghost User requested to merge lippuboksi into Development
3 files
+ 29
38
Compare changes
  • Side-by-side
  • Inline
Files
3
import {
import {
Entity,
Entity,
Column,
Column,
PrimaryGeneratedColumn,
PrimaryGeneratedColumn,
OneToMany,
ManyToOne,
ManyToOne,
Timestamp,
PrimaryColumn,
} from 'typeorm';
Timestamp,
import { GameEntity, Game_PersonEntity } from './game.entity';
} from 'typeorm';
import { FactionEntity } from './faction.entity';
import {
Game_PersonEntity,
@Entity('MapDrawing')
ObjectivePointEntity,
export class MapDrawingEntity {
GameEntity,
@PrimaryGeneratedColumn('uuid') mapDrawingId: string;
} from './game.entity';
@Column({ type: 'bool' }) drawingIsActive: boolean;
import { FactionEntity } from './faction.entity';
@Column({ type: 'time' }) drawingValidTill: string;
@Entity('MapDrawing')
@Column({ type: 'json', nullable: true }) data: JSON;
export class MapDrawingEntity {
@PrimaryGeneratedColumn('uuid') mapDrawingId: string;
@ManyToOne(type => FactionEntity, faction => faction.factionId)
@Column({ type: 'bool' }) drawingIsActive: boolean;
faction: FactionEntity;
@Column({ type: 'time' }) drawingValidTill: string;
@ManyToOne(type => GameEntity, gameEntity => gameEntity.id)
gameId: GameEntity;
@Column({ type: 'json', nullable: true }) data: JSON;
}
@ManyToOne(type => FactionEntity, faction => faction.mapDrawings)
@Entity('Game_Person_MapDrawing')
faction: FactionEntity;
export class Game_Person_MapDrawingEntity {
@ManyToOne(type => GameEntity, gameEntity => gameEntity.id)
@PrimaryGeneratedColumn('uuid') GPmapDrawingId: string;
gameId: GameEntity;
@Column({ type: 'timestamp' }) GPCTimeStamp: Timestamp;
}
@ManyToOne(type => Game_PersonEntity, game_person => game_person.gamepersonId)
\ No newline at end of file
game_person: Game_PersonEntity;
 
@ManyToOne(type => MapDrawingEntity, map_drawing => map_drawing.mapDrawingId)
 
map_drawing: MapDrawingEntity;
 
}
Loading