parent
27629fbe3b
commit
d7b5563d0f
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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user