🚧 RunnerCard EAN
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, OneToMany } from "typeorm";
 | 
			
		||||
import {
 | 
			
		||||
  IsBoolean,
 | 
			
		||||
  IsEAN,
 | 
			
		||||
  IsInt,
 | 
			
		||||
  IsNotEmpty,
 | 
			
		||||
  IsOptional,
 | 
			
		||||
@@ -32,12 +33,12 @@ export class RunnerCard {
 | 
			
		||||
  /**
 | 
			
		||||
   * The card's code.
 | 
			
		||||
   * This has to be able to being converted to something barcode compatible.
 | 
			
		||||
   * Probably gonna be autogenerated.
 | 
			
		||||
   * could theoretically be autogenerated
 | 
			
		||||
   */
 | 
			
		||||
  @Column()
 | 
			
		||||
  @IsEAN()
 | 
			
		||||
  @IsString()
 | 
			
		||||
  @IsNotEmpty()
 | 
			
		||||
  //TODO: Generate this
 | 
			
		||||
  code: string;
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user