-- Host: db-master-8.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=19218;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=22113;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$R6hmrrobTgyqUvVpPmYYpWbSz.LiVhD808myURqO7I6USJrMSyjRl','user','ak_01a6876229e16a46','2023-09-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$uKQjQH0DDXlCW1kFWzp/WHw58.XEO/xHb5Tjb.0I8p208uIuqwGrD','user','ak_7f909a14244badd5','2023-09-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$kfXicHrmQR.i0S337KwxzJh3.UOA3TxNkZV2dopYjT7WjM1xCbhSl','user','ak_4724f375478644dc','2023-07-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$X1tAz1eW0CD2DT5o3DjEVy49N9FYwQ7HtKGms/axaiQ1TL6AfLlC5','user','ak_a1632087d304b8da','2023-08-08 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$2Lk6HmGB13oxw1/a44jV95cRLivfz1uAdazpLNPL5I49kamDPvKRD','user','ak_a80b052707cdd62e','2023-10-13 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$zaFeBwATMCa6UZfziHggziZpOj5AXIw8JqmiXed1qzRnsUxEXorSM','user','ak_f18adbf34c1bffd1','2023-10-26 10:03:00',NULL);

