Skip to content
Snippets Groups Projects
Commit 62398b23 authored by L4168's avatar L4168
Browse files

added hex colour to faction

parent edf20c03
No related branches found
No related tags found
3 merge requests!59Development to master,!44Development to testing,!42Draw update
......@@ -8,6 +8,7 @@ import {
Min,
Max,
IsOptional,
IsHexColor,
} from 'class-validator';
import { GameEntity } from '../game/game.entity';
......@@ -23,6 +24,8 @@ export class FactionDTO {
@IsNotEmpty()
@Length(2, 31)
factionName: string;
@IsHexColor()
colour: string;
@IsString()
@IsNotEmpty()
@Length(3, 15)
......
......@@ -21,6 +21,7 @@ export class FactionEntity {
@PrimaryGeneratedColumn('uuid') factionId: string;
@Column('text') factionName: string;
@Column({ type: 'float' }) multiplier: number;
@Column('text') colour: string;
@Exclude()
@Column({ type: 'text' })
......
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