-- Host: db-master-4.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=50097;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$b3WBZQRw1A2l6t2Oh/.X4mBFCtvscAnVqWcbZVMNom7P8qwsOKKRU','user','ak_99b0b9a9de5fb6b7','2023-04-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$afzCFVT62wluAsaUb54aTn/1tWsEfGnJhcqqU928KIjgkJYva72Ob','user','ak_2c052f2cf1832af0','2023-09-28 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$1qsp8v9r1SpgFtv9n.stGhL41BsbMniucpYnkIfDkf7bPcpmHa6P9','user','ak_2e8ee498ad807572','2023-08-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$PXtcZyR3I9CrBu4v/9PK3m2Ey3KFZC1Aunk/dW.q1STrI1nGB0fra','admin','ak_1f14f639f2862c82','2023-05-22 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$n9NRMioszWu3TxaeQ0knheJ4jtqX3t26VD/ZjAhg6Zq8plJ8JuddU','user','ak_d63bd7b55288aa34','2023-04-07 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=20564;

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


