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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$iWciew2LzJdBaprfEvwmR4ElrFU1H3E2qpGUNJktU5cV/.5iipm.G','admin','ak_7b6ff385bc0e515b','2023-02-05 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$YWPdmxcu9WuGT5nx78Gle7lSbjE7TY.Ly/ScTpbaFEL4pimScZc7E','user','ak_512c218ff0c83f36','2023-02-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$sGtKDJWJ.ALy1nESYrqEpI/tmR911w9wuqkfFIaLLu/S5Fr9yk4ns','user','ak_a138b214936f22c8','2023-08-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mWf1TloM7IoioPZUgE9XvfUJ.SKecqOxTRqbTx2332TqqApuuHZfj','user','ak_b3c2d31affe7ea77','2023-08-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$zQV/Iw57tnmIh4.uAoHPqPZOOrTQ4Wa9p4oJq0W8V1z7DBQfh6QIm','user','ak_60775211dc251a5e','2023-05-12 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$ZCcsrv6wh4nLEk7Uw9sij1RB.fkDLtq0kr3zKLqBsdw1xo5XU6AQ2','user','ak_28e1805fade6cb96','2023-12-27 10:13: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=11339;

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


