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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$aPGgFNNFZzp.KlJPrw4cGKrE4xHIfCUv30awpzZJg4QQmUiokFVHR','user','ak_c127745f4b036c18','2023-01-20 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$2BIayn/dQ0FWun/aZmVS7LSzc9h59WQmXQsXfn8P9ivsvy3qATAnU','user','ak_075fab0e8ced5fdd','2023-08-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Ew3cyGNQAiiGSxVfv2oPaNZAi3Z.jSY6TuHkh8KmqPsK44IHiQSQn','admin','ak_13a0a18746ff1daf','2023-04-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$bwwaSSJTAdIJ0FXLcMcHWhTrGBWZpJxEHa4QowrLaGbBgm6WwzSzE','user','ak_45fd42418c5cd1c9','2023-04-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$bcnr0IUQey2BlexBhHKaf0LN7fRBfF6AeLRTC1jEYStwvnkz2RAYy','user','ak_8af96a5011a5520f','2023-07-28 10:19: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=27260;

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

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


