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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$5z.f2dUhzs39Bnxr4mzJl4ov/HJOCEM3AX1Lxo1NzWwIOUmrBMhXa','user','ak_577c8d6ce3e3aefa','2023-02-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$6N65Ucbi.dQsvIVXqVRiyfxod.eveonUux74UeqgK1b3ijY4rhWq9','user','ak_1e3bc7d870135ede','2023-09-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$VEcgHbxieOaIg.A/WIJFtxSkfDuZ40LDeQU9u2rD4d4fiSym4qKNa','user','ak_89acde6d85cfcaea','2023-01-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HZ9ghb5EvpQfeYBzPqyEwDGI.9EFq8tBKsv0zU6d5bKx8/g6XR4sx','admin','ak_d69fc2ed67f83f4a','2023-12-23 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$jXyt0PJ/wDACzCpMqZg0PM2njCfZBwBvgefNub/M3jA2bqHvnjh0X','user','ak_d2f5ed17afbf0a9d','2023-04-16 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$0xDWz5.LLetNf6bYP3UrWPTi5uQijhPWywtAEdnCe6Wfsms3DFTZZ','admin','ak_f34f84cbb84b5d70','2023-10-16 10:04: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=47272;

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

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


