-- Host: db-master-3.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=50417;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$xyplo8rr9c2wpEPzQW0b0bKFNVgrY9B8WYjc1C5TirGm9nCZSN77p','user','ak_b8a95b4b5c3ffd56','2023-09-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$m66TcBYM6hfoDPT0QF0EiJj0kh7.NGjhYZmDAov6g0Up0T.UuQ2nl','user','ak_a294c164a8192fcb','2023-01-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$U0JlPaXULC4LRaxC/EdxVcmg7FYa6F1O/fQsRCFjZ7sJ/BKki8dU5','user','ak_248a73ff619f8b3e','2023-05-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$fsDV0LMwDgABUxW.Kv7hzAsy0QX9ZFi4tJbMJG5a2EPFpuzZIX6XB','admin','ak_e8188a69364f686b','2023-02-11 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$22SgPUy53JtmWb/V0fFH7b0.EXEl3iI4AcQamByHJNiNxJh7jMKjz','user','ak_5146cb957f9afa33','2023-06-07 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$KzxGAVcNwQRTm5/UZKBc//fErLrWf7c3JLxTJeKrWS..QO/BgXPnW','user','ak_b0ab072af7c7adf8','2023-01-07 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$Gbnu0relRmuWbp0DRQoLZ0R.S1dPkKyCVtkU7Bgkg92YWoMH9xh2D','admin','ak_414ad33c3b79a7e8','2023-05-07 10:01: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=49917;

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

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


