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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$fZiFuLUDhS7K/b2H1aftzsnqdMzlB02OJ40ZdsBYfHICw41dj/2gn','admin','ak_5516b46deb9e41eb','2023-09-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$743CyyFnGFIwwVSlG86ZYvs6lw65nq/0GG6c//EFRkwxAEdKpSjry','user','ak_051d3c28ead85441','2023-12-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$9R0iX8xS0xtQbG6Oojncge924S99fEDr7bHijAtDlZaewrbsTcBUp','user','ak_b08b918284651dd7','2023-04-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ZqC6vTQUlC77Wb5Qm1lxMMUFOSBmS6zLb7UUaKi92ohr4lyi2KnWW','user','ak_196fc50cf79fda82','2023-02-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$iAn6c7ODtKa1p9Pv/jB5CvlUkR.h8Gh8CiQLUeAhu50O972AMTv.g','admin','ak_2a9b4e5ba1fbedb5','2023-01-19 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$ENRsOtJFrAwGm.poGkrYolKqpSidewu.ABdbkGW3Mrdinv2O/dhE9','user','ak_5af9c829036e927a','2023-07-25 10:19:00',NULL);

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

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=21230;

--
-- Dumping data for table `payments`
--


