Skip to content
Snippets Groups Projects

Corrected database and started role controller

Merged L4072 requested to merge RoleAccess into Development
8 files
+ 127
41
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -13,6 +13,7 @@ import {
GameEntity,
} from './game.entity';
import { FactionEntity } from './faction.entity';
import { type } from 'os';
@Entity('MapDrawing')
export class MapDrawingEntity {
@@ -22,9 +23,20 @@ import {
@Column({ type: 'json', nullable: true }) data: JSON;
@ManyToOne(type => FactionEntity, faction => faction.mapDrawings)
@ManyToOne(type => FactionEntity, faction => faction.factionId)
faction: FactionEntity;
@ManyToOne(type => GameEntity, gameEntity => gameEntity.id)
gameId: GameEntity;
}
@Entity('Game_Person_MapDrawing')
export class Game_Person_MapDrawingEntity {
@PrimaryGeneratedColumn('uuid') GPmapDrawingId: string;
@Column({ type: 'timestamp' }) GPCTimeStamp: Timestamp;
@ManyToOne(type => Game_PersonEntity, game_person => game_person.gamepersonId)
game_person: Game_PersonEntity;
@ManyToOne(type => MapDrawingEntity, map_drawing => map_drawing.mapDrawingId)
map_drawing: MapDrawingEntity;
}
\ No newline at end of file
Loading