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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$NSJX8owYsgo3XI95RGJchNcuUUBtkbZFpzO1WHFS33yHvR56PQA37','admin','ak_6e75d99a6fbf44ec','2023-04-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$7KDmOmR0OGpCgH7fh9Nm1DxyDPTq2OdJF/6yK0DL/.F7MOmiPSPhe','admin','ak_c416b03928a489d3','2023-05-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$t0MqHb80tMKmIt0OFF1qjAkHvJk0Yoj497/qXQhu6I8R6vgBqlPTT','user','ak_cefbf0b8e5602ec4','2023-10-04 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Mm3tPXOk7.DfRtNa.h6kZKwKeszVl1sUR8yaxMqm3DDYFmHIgc1ik','user','ak_66602009ce41f975','2023-08-18 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Rs05cdcdgV5hfyCwG/bglbNpkV4ErWOO3/kiJZaDfXipJH5EPIIPz','user','ak_294f1d7d5b3c433e','2023-08-11 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$6RSaZ3IOrK03JTmMA3ogsquP2Oy6AyUOa.dAc8RRKUapCO8fq18Ug','user','ak_64703f2ee6474c46','2023-12-04 10:11: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=24317;

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


