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


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$iGXJczUQo15nlTmuijncgKZTOnFblu/jAhDnCtnXoh9Tkb8sNNQD5','user','ak_7b1592590903ae7f','2023-05-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$tJF9qo9XNIYkoSlMRESGzoGqjdG.FuDNXV2pZ8kWZV0Ch2JySyJr5','user','ak_3b212c22d03938de','2023-07-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$f9DqmwdnBOpkojMnDhkYnp15BqsQ93rWZnLGsha9ycHXYm9bnCYfJ','admin','ak_259d7ce1898eb46f','2023-11-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$pBESAGSNvTJL2lhGdaxDgQJzSD3AkJAN08jgyaYCWDjHUMQKgn8BE','user','ak_2a8c619c7f0cfc6f','2023-04-08 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$3cxvKyTOm4ioHeMdFl66KqMyG4bbvs6VrpRgd4Ush9N9K3OdQJeBy','user','ak_a211512fb8a35b7e','2023-04-06 10:15: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=28067;

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


