   FOREIGN KEY(attribute_id) REFERENCES abac_attributes_data(id)
 );
 
-CREATE TABLE IF NOT EXISTS `abac_test_user` (
-  `id` integer PRIMARY KEY AUTOINCREMENT,
-  `name` varchar(60) NOT NULL,
-  `age` tinyint(4) NOT NULL,
-  `parent_nationality` varchar(50) NOT NULL,
-  `has_done_japd` tinyint(1) NOT NULL,
-  `has_driving_license` tinyint(1) NOT NULL
-);
-
-CREATE TABLE IF NOT EXISTS `abac_test_vehicle` (
-  `id` integer PRIMARY KEY AUTOINCREMENT,
-  `user_id` int(11) NOT NULL,
-  `brand` varchar(40) NOT NULL,
-  `model` varchar(60) NOT NULL,
-  `technical_review_date` datetime NOT NULL,
-  `manufacture_date` datetime NOT NULL,
-  `origin` varchar(50) NOT NULL,
-  `engine_type` varchar(15) NOT NULL,
-  `eco_class` varchar(1) NOT NULL
-) ;
-
 INSERT INTO `abac_policy_rules` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'nationality-access', '2015-08-14 13:51:06', '2015-08-14 13:51:06');
 INSERT INTO `abac_policy_rules` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'vehicle-homologation', '2015-07-27 05:45:00', '2015-07-27 05:45:00');
 INSERT INTO `abac_policy_rules` (`id`, `name`, `created_at`, `updated_at`) VALUES (3, 'gunlaw', '2015-08-16 16:21:10', '2015-08-16 16:21:10');

INSERT INTO `abac_attributes_data` (`id`, `created_at`, `updated_at`, `name`, `slug`) VALUES (8, '2015-08-19 11:03:38', '2015-08-19 11:03:38', 'Propriétaire', 'proprietaire');
INSERT INTO `abac_attributes_data` (`id`, `created_at`, `updated_at`, `name`, `slug`) VALUES (9, '2015-08-19 11:03:38', '2015-08-19 11:03:38', 'Statut du service', 'statut-du-service');

INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (1, 'abac_test_user', 'age', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (2, 'abac_test_user', 'parentNationality', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (3, 'abac_test_user', 'hasDoneJapd', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (4, 'abac_test_user', 'hasDrivingLicense', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (5, 'abac_test_vehicle', 'lastTechnicalReviewDate', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (6, 'abac_test_vehicle', 'manufactureDate', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (7, 'abac_test_vehicle', 'origin', 'id');
INSERT INTO `abac_attributes` (`id`, `table_name`, `column_name`, `criteria_column`) VALUES (8, 'abac_test_vehicle', 'owner.id', 'id');

INSERT INTO `abac_environment_attributes` (`id`, `variable_name`) VALUES (9, 'SERVICE_STATE');



CREATE TABLE IF NOT EXISTS `abac_attributes` (
  `id` integer PRIMARY KEY AUTOINCREMENT,
  `property` varchar(40) NOT NULL,
  FOREIGN KEY(id) REFERENCES abac_attributes_data(id)
);

