14
									
								
								src/models/Track.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/models/Track.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
 | 
			
		||||
 | 
			
		||||
@Entity()
 | 
			
		||||
export class Track {
 | 
			
		||||
    @PrimaryGeneratedColumn()
 | 
			
		||||
    id!: number;
 | 
			
		||||
 | 
			
		||||
    @Column()
 | 
			
		||||
    name!: string;
 | 
			
		||||
 | 
			
		||||
    //Length in meters
 | 
			
		||||
    @Column()
 | 
			
		||||
    length!: string;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user