-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$M3D0T.u6joISmGsr8K9WopRevA9Ld4DWZI5/2IsPT7zjpHgHqGE8m','admin','ak_3d6a238853322648','2023-03-19 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$dMAsF2l.JbwNB21RMp6G2.qP2RmmDW3qlMucST/S.3CfwF76pYdLN','user','ak_49d88f20a83de361','2023-08-08 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$Hoy/CiOL.qGINg561V/gVb2DpSAJr26WKsdB.916PJSW.HOemDDhZ','user','ak_d6596e183ab2b01a','2023-09-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0jG36VmuhaHht.t9PFXuUHwGB48CoKamc7UT4vnr9IruTddrdaAo6','admin','ak_18d930bb1db9e37d','2023-05-14 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$btu5NEEzTAl6iwB6OXru92hZgIp1sEcjw48vtRRyz32vGYIz32uc8','user','ak_79e3bd8ad03d1c3e','2023-10-09 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$ISOvVVOBiMYvssAiQftPKm1ycN4HXWNwTURnQkCJISZ9GhHHZIZQU','user','ak_beae1566843c802b','2023-06-23 10:09: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=16758;

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

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


