Incluindo tabela carModels e rotas para pegar lista de carros

This commit is contained in:
Matheus Albino Brunhara
2022-05-28 15:40:09 -05:00
parent 4d2eac45d2
commit ee259bd6ff
8 changed files with 243 additions and 2 deletions

12
src/models/CarModels.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity('carModels')
class CarModels {
@PrimaryGeneratedColumn('uuid')
id_model: string;
@Column()
name: string;
}
export default CarModels;