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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=12868;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$O1BJ1aaX1ypLVBbEAkwMu3SG5lYkpFrh0P2tBulBBggGVCbLTaNq0','user','ak_fef366e861d28015','2023-03-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$F1QbJdqsIHRWVqETdrMDcy0Q3nbxumyn14S2ByJ5d.uWRIcEVPQfY','user','ak_30d038a0e331da40','2023-07-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$zNyQco0IErz/gOyGAx8vAdxdvqi9Vvdv1mgQrjAZeDyqcZTYy6glq','user','ak_364fa5fefb7d03ad','2023-09-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$/f1QwxqalBCdfk5vBchmsqEuZc7edN0lfzc816G8rUbRqvlqpF5p5','admin','ak_11d66c341aabca65','2023-05-22 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$PedOwYn7tn.Emehlvoubd0tDtuBOPUiB6qAb4y7E.dt7Bzl0Z7UnK','user','ak_4b6197af72d838a1','2023-04-24 10:08:00',NULL);

