Skip to content
Snippets Groups Projects
Commit 77aca909 authored by L4168's avatar L4168
Browse files

add timestamp to entity

parent f2ea5595
No related branches found
No related tags found
3 merge requests!59Development to master,!54Development to testing,!53Mapdrawing replay
This commit is part of merge request !53. Comments created here will be created in the context of that merge request.
......@@ -4,6 +4,7 @@ import {
PrimaryGeneratedColumn,
ManyToOne,
CreateDateColumn,
OneToMany,
} from 'typeorm';
import { GameEntity } from '../game/game.entity';
......@@ -38,7 +39,7 @@ export class MapDrawingEntity {
@Entity('MapDrawingHistory')
export class MapDrawingHistoryEntity {
@PrimaryGeneratedColumn('uuid') mapDrawingHistoryId: string;
@CreateDateColumn() timestamp: Date;
@Column('float') timestamp: number;
@Column('bool') drawingIsActive: boolean;
@Column('json') data: JSON;
......
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