-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$VK/6i89nsTo0RB1P6HJIqjUVHyvgz3pE..3pEKRXn/dcdgCor35Et','admin','ak_9284cb2811551487','2023-02-02 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$UKpvypBUBnzw0oqUe.xhWWq5SeUd6hHhB0SqKd8GB4kL/JjdVDSiy','admin','ak_5cff3a04b9904de0','2023-03-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$CRD/0ir/K7xNd8H7kmZMPRxTF58II04YqnLfmkcd33/jcx2agoXlq','user','ak_4fdbf9ea7962de13','2023-11-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$mWQlPxiTKKoAl2symld/tyIfM/1GqrL60uywxBzY1eGGSMTOf0SNz','admin','ak_c3db07675c296e0d','2023-06-22 10:13:00',NULL);

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

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

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


