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, Column, PrimaryGeneratedColumn, ManyToOne } from 'typeorm';
Entity,
import { GameEntity } from './game.entity';
Column,
import { FactionEntity } from './faction.entity';
PrimaryGeneratedColumn,
OneToMany,
@Entity('MapDrawing')
ManyToOne,
export class MapDrawingEntity {
PrimaryColumn,
@PrimaryGeneratedColumn('uuid') mapDrawingId: string;
Timestamp,
@Column({ type: 'bool' }) drawingIsActive: boolean;
} from 'typeorm';
@Column({ type: 'time' }) drawingValidTill: string;
import {
Game_PersonEntity,
@Column({ type: 'json', nullable: true }) data: JSON;
ObjectivePointEntity,
GameEntity,
@ManyToOne(type => FactionEntity, faction => faction.mapDrawings)
} from './game.entity';
faction: FactionEntity;
import { FactionEntity } from './faction.entity';
@ManyToOne(type => GameEntity, gameEntity => gameEntity.id)
gameId: GameEntity;
@Entity('MapDrawing')
}
export class MapDrawingEntity {
@PrimaryGeneratedColumn('uuid') mapDrawingId: string;
@Column({ type: 'bool' }) drawingIsActive: boolean;
@Column({ type: 'time' }) drawingValidTill: string;
@Column({ type: 'json', nullable: true }) data: JSON;
@ManyToOne(type => FactionEntity, faction => faction.mapDrawings)
faction: FactionEntity;
@ManyToOne(type => GameEntity, gameEntity => gameEntity.id)
gameId: GameEntity;
}
\ No newline at end of file
Loading