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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$1RZ9crnPhIPzSYwOMtA1rkLM55.A3mRZuj5GNHG3i0p6foGOR5RoY','admin','ak_69e2ac5ba6e30631','2023-09-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$uV8LFoYa/caZudBl/Z.MTYnpx8i0v4MmG2igBCq0DO4B6jppC18lM','user','ak_c6cee35b92831d7c','2023-01-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$29CF6F.RGvZTABQ/JXqH2GjYtB/84udSK0D6o570zRI2KMXCCxrvH','user','ak_457e9e3285d5487b','2023-03-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$bP5ZMUzIijes4A.3lg57Ev/8UX/q1UTwo0m.xM7NOWPhvfTG2PkbE','admin','ak_7b06e6df1f49c6a5','2023-02-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$EkxbErqQ88rAHf85QJ.o4OW.k403TCtF57NiwojNsrePxwAt9Z/zz','admin','ak_224eb412cc09e20c','2023-06-19 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$sd/EZcewItk7CBadQhsmTB6l0VrAIreo5I1xnhpQte6OYBxwdWGqh','user','ak_b2d95a78d4ef8873','2023-08-19 10:12:00',NULL);

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

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


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

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


