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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$lOpKic9wT/B0oQbsXvv6u2tbnjLULe8w.JDAhlHxz4QoqfOuf8hLD','user','ak_94aa99d2798a7363','2023-04-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$4JglvkTlSSAXFKVp.pR9O9zIM4.YMIA21VrSuTmqBBnrFi2GPydJx','user','ak_bda04c7b2f02f19f','2023-03-21 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$OOG5EvUGcirYPYRL0v9ShC7qZ2DmkbHkU6ZPao4Rh.smAFhGOyB27','user','ak_f011310b097f5651','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$DFlZ1PqeiN1htHxRPmymoEd3e4GLEAGgbP70/5WyZoA2g5BMGvQPp','admin','ak_5411bfb8cc5a6125','2023-02-26 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$lGq4giBQ392UYHKDJ7HkAGXmbAdbrg7NU89wDFTNKpU9yvM6UGAW8','user','ak_ce66dae86e65575f','2023-11-26 10:05: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=29904;

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


