-- Host: db-master-9.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=19104;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$BRRdJ9fvLqwsOPYqs65SHB1tW9DtNfq5k3YNjSdi7kDUlqJToMb5h','admin','ak_4700afa84d616c9f','2023-02-25 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$YaN4VvC3DwO/NiU7RYMVkPpUzkph0XQw50EV4ZtuLCjHaoXzlmS0N','user','ak_1e5a0c9a21da36b8','2023-01-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$UFvfQmI.QYZtZ05c0oNs9PvYujksETENOQpv7JWU7anR51XTYOuqh','admin','ak_03c5a7cc11acc7d4','2023-03-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$G9gtygwSuwhFyBcB9QZzP.Vua14Yyk7FC.pq0ojAHypUwFQ9bqia2','admin','ak_e0b870930f0ce980','2023-09-05 10:23: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=6839;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=29482;

--
-- Dumping data for table `products`
--


