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


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$vLD5aVmdwNFnfMg3JZHwwcnDb7oR537fdya4.e112MP5c3A2EitiV','admin','ak_3dde1f5105b40513','2023-12-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$rAug4jHouglI7CUv9Jyj9/YPs4a4/D2r9o1U49a/9d41gGSDOiHDi','user','ak_87bc0c2bdca98534','2023-12-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$1rSiqUHTirkR37qXVy433F3L8OCCK9CWaLRDUAYDDasO4kFNmI.2m','user','ak_0d1ec27167702f95','2023-05-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$p3dPvCenEAuxT/2YRi35ewPowPSK48EqoHatOUz5LsWzZ5jMsWqi1','user','ak_991e8e82a0bd84e4','2023-07-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$5X0zqFT1uoY3LYN6GlkJI7PzIx5EkDAjDWvRV4Okt98IvjaOX0Ek0','user','ak_6195718393d7d236','2023-06-11 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$C0glBbW90k2u1KQ4ZsYGweWkdMzQdL8bb3j0GQddWuaWB.sXFxrTb','admin','ak_2954312fa0997f70','2023-08-20 10:11:00',NULL);

