-- Host: db-master-1.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=25596;

--
-- 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=16509;

--
-- 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=47820;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$3IBeMmEN2.MT1cVBCosIoTa6JhLor5pAK6/q4imnwx/pAJBb6Laei','user','ak_e017edab0f15348c','2023-07-18 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$v04B0qnu8mF5eJGpV8.45lE6VM4asorpY4bBD9pyacr12d0wGLwVu','admin','ak_3bd51b12f532d7d4','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$uh72DVClBQ9Vj2wsJpGqepNN8Ah1q1Kk.1janff5xkAsmNV5BHKbD','user','ak_f1b417fb6834c107','2023-06-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$HEhL2C7.dRS8/RqC7/V/mt91GUiZDjBK0lBJlrVOLhmSvRxqDfkhj','user','ak_ab152b9def183c90','2023-10-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$YD2q31U8MY7yPgkvx.NYDiLRHN7by4BgrHysnAh68oPzMigCrKRui','user','ak_cc5017de4cbeac49','2023-06-03 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$bd4.gPdEwon8X.BaUOernJVMx8rdU9x7klqmNLxlJ2Fm20dbA/gUK','admin','ak_51785b3eb6802d86','2023-03-20 10:00:00',NULL);

