-- Host: db-master-0.internal    Database: customers


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=14758;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=3408;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4049;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$pT0e8xhZAKJfiKr/mmvashVVS1wgej3NExbE6dpzM1Pa8YsnxeJP8','admin','ak_db7a48093d91b95b','2023-10-25 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$aIhGbzqbPiiCBt0O625NN92txQ0kmiMcljfwD0KDkZc/WYJ37XI.E','admin','ak_3e516b87044099a7','2023-05-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$A0yiAyO0TwC.KziRuPz7LafOu0t7RzoJD3N1wOdhZ5BhDft/or9CJ','user','ak_39233f635080128e','2023-12-12 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$fAGawfc8Njq.AK2oV7iuPdvvQ/XG9eWx0362/a/meuSaYrYBOyA4y','user','ak_414e41719c01837e','2023-01-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$jibnhJI8cu/nUu6aCgB.L2Rne6TgS8AGNM8wTzrRQA51bY2bXDZXZ','admin','ak_0147ed2030ba347c','2023-07-27 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$l1bL.LtrYxOt9GWQRp32vKe.DfkazCBpbhj62YelkjJQGg3UUPXxP','user','ak_3b5ffebdcecff37a','2023-05-18 10:02:00',NULL);

