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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$HdsZG/mOwGTOvnfqnA9Wv/w/TXLs9RrzoSsRc.MIDb5uVjp0skuGr','user','ak_654ce639d80bf791','2023-09-05 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$yn4cwVRxglTNsD2YHl2jeGIEWSuBfIkmxYD3Jld4Fvg.ySavgf7am','user','ak_bdfb17036c672333','2023-07-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$DkneHexBww6FG6FOE9tb6oclCzbwUfjiSwKxjQFJhX5Uz1yamamLB','admin','ak_3a59c81ac6b20be8','2023-03-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$SA7RIZxvFZG2lnYNcihS7xPFoURFKL1/IffEcIPNMNTXAia4Ob2uz','user','ak_b5f74261f1898b15','2023-03-08 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$ywwIDeats7ibElSnmDjubmuEWGX111VMn4ejN/oQ5LarJIgn9mkmx','user','ak_c14b9a6ed85265d3','2023-07-13 10:20:00',NULL);

