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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$0JEzpuX8ey7p5Ja1AT3.16LROeL6jLHSeD.Plu2UMKtdLXcGRoIAf','user','ak_68257d42f30f149a','2023-09-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$XJ7DTh6z02kIorhMrVeIU7Zw.Sg45/Uw98gJ9ohR0BReSIxINZK5a','admin','ak_f7d5f29304899095','2023-08-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$g6C1lIZq1Kw289ayqnUfkjbNAjs.mEj1ZOgJrG1IztV35pk2KQ86K','admin','ak_73b12365274687f3','2023-09-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$6iYIB6M.igZOnF4W6f71MyQMKCyI/.YguP1KS4OueR78gSWQqtRs0','user','ak_6becd48528a79431','2023-12-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Izkl/95HIHgNEN.C1TP.OCn9N5wUX9Wv4xWdOwJbgcEGxnxJtAWs9','user','ak_6eb3ce3cf7229406','2023-08-11 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$AodiF9p5mkpYhpOUSLSIS8KJkM7mnucxgo3TZ3/MG8Q2NZeyg7ODN','admin','ak_d6cd2f25b2b07c11','2023-12-20 10:05: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=21092;

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


