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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$/pxRALAb46y3TwBoXFXo7eb1.hkwNF6r8rrPcFv9aGs06hrdVTG7N','user','ak_cb05caf21c3bbb17','2023-12-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$YSrYI9UYOzjXqwTeNL4sPV1v.tgbLV5lTvAhqg8D9XbvqPhT.uqsm','user','ak_4c2001e83b5181fa','2023-08-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$84BQnIihdkYdUVYP/7jcRTonxZr42ukzEUq0t2kvv6zapb3GB0tiB','user','ak_75eb00553def8efc','2023-02-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$NX.s2p2lk0fo2g8eiyhS9rtexvl2mT4cAGu7eGoFvmYkAuri0hkml','user','ak_fc8d6136e7e5ec45','2023-05-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$0X2aKC3gbgwPlcxRNjuYQWHAgwFFk/yCq8G91MBBnlC2c/21yb23k','user','ak_70c593e2cb78fe83','2023-03-19 10:07:00',NULL);

