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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$D8PyhBX/d6ulszmxe.s/xANSIgq/.1GLSzH.zd9ZH1QtCtZnOlDsB','user','ak_5bde53642eead4e2','2023-09-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$2QHQU6eQHBIHtKobshSIxjEIKlEo7ngf5vA1RyhILQJTsx8fRFja1','user','ak_ce0ea81febbbf1d0','2023-05-06 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$WPpMBjTdL7hGseco1khJ1eE8ClOAaWn.8Ns9m4THK7OQMnP7o8AMk','user','ak_c015c58cef8a5b45','2023-08-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$i.sz4.CzhpHZ1B/48HoEEDni4cA7PpAv1dCgd.2P5edgN3eGueqC8','user','ak_00bb3870d7e9d335','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$U2z8Ylc/80b15/Z3BWzr85hKjRtwkK1zABOSBXANLrl9JA6pkVQPV','user','ak_5ad204eb7fc415fc','2023-07-02 10:11:00',NULL);

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

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


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

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


