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

added column type

parent 7d7e44bf
No related branches found
No related tags found
3 merge requests!59Development to master,!36Development,!33Small fixes
...@@ -12,11 +12,12 @@ import { GameEntity } from '../game/game.entity'; ...@@ -12,11 +12,12 @@ import { GameEntity } from '../game/game.entity';
@Entity('Notifications') @Entity('Notifications')
export class NotificationEntity { export class NotificationEntity {
@PrimaryGeneratedColumn('uuid') id: string; @PrimaryGeneratedColumn('uuid') id: string;
@Column('text') type: string;
@Column({ type: 'text' }) message: string; @Column({ type: 'text' }) message: string;
@CreateDateColumn() issued: Date; @CreateDateColumn() issued: Date;
@ManyToOne(type => GameEntity, game => game.id, { @ManyToOne(type => GameEntity, game => game.id, {
onDelete: 'CASCADE', onDelete: 'CASCADE',
}) })
game: GameEntity; game: 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