CREATE TABLE IF NOT EXISTS oc_gestion_vehicle_purchase_type(
	type_key VARCHAR(200) PRIMARY KEY,
	type_label VARCHAR(200) DEFAULT ''
);

insert into oc_gestion_vehicle_purchase_type(type_key,type_label) VALUES 
('LOA','Loa'),
('LLD','Lld'),
('CREDIT','Crédit');


CREATE TABLE IF NOT EXISTS oc_gestion_vehicle(
	id INT AUTO_INCREMENT PRIMARY KEY,
	brand VARCHAR(200) DEFAULT '',
	model VARCHAR(200) DEFAULT '',
	immatriculation VARCHAR(200) DEFAULT '',
	purchase_date DATE,
	fk_vehicule_purchase_type_key VARCHAR(200) DEFAULT 'LOA',
	fk_thanato_id INT
);