-- Host: db-master-5.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=6797;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$ecWz7mOjGjMFWWDit2cN.OQXUJTvA9VptdtIAFvKANw3aClhbmHUI','user','ak_9f79cce0ed461d2c','2023-07-17 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$YLFep2GRso0yDr.huvs4znj4WeXAqSxRBI9bJNC4R0Q7zwzik9.oq','admin','ak_170fa72f3a953308','2023-03-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$JAs6vdryBR6obRDpLUu/5z7pJ6S9RHOOWHxLQeFRXeV1TDBkDcLHJ','user','ak_443d41b2e8897f56','2023-06-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$xC/V5HwAg.uAFLkN8OkuYATPqt8NM8eNqM1qZNwDJaCpqRNudbwRy','admin','ak_b19d07a23193ba74','2023-01-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$rXDpQZJyZE16KmbN6.fccy3VQg0AU01v5DNXZbCsSxw4/AbHtJ7Nt','admin','ak_5244639acb84ed22','2023-10-28 10:00:00',NULL);

