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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Z6/CEKZ1fTliMFi/oIf9m6frK0qqTNL1ne82dI2SActGgVtex55pf','user','ak_ca2bc53a279d621a','2023-04-03 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$t7Js6mCrLT0Go8zV5S7EtoSwCmI2YcV18fOYuIQEa.pJrPTj.vM2c','admin','ak_ab3ef1f28d00ba21','2023-06-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Pb5w7FIDVyP.ZbKV1ik3oovBS2rDYCaIcYPdK69.zchAkpGK/WMqT','user','ak_9eac3ed23b7636c1','2023-03-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$TRDXhNmBaq8ppZ7k9upw9byhMbRu87ZaNr2nyngxN0smcu7SRTEUB','user','ak_ec2db00abeee239e','2023-08-22 10:08:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=12523;

--
-- Dumping data for table `audit_log`
--


