-- Host: db-master-5.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$IGH7O6yBhHa2GlYLTnfsGYdgZcwtlHEcBbKUHzdPKyYfW2h6RjbiD','admin','ak_0ebec1ffb69cacc6','2023-03-16 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$3CrKR/IsoYUCBBx/5gAaEIW7Gvom16vhAFR/82wf3Lc/7xjzUBZsn','admin','ak_c207cb60daba050c','2023-02-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$2T86HR8H1QC.lb2duFV8Ag6ataGJsB2XUAUtjTcJ996LVQkIuuFoQ','admin','ak_c6c2929ee9707373','2023-11-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$CVOFFsrpLFW5z6cPZCGtf33f2dZQpqBi1tA8DXr/yATmuPyhFMtaH','user','ak_09303416756436c0','2023-12-13 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Jrz52gfmnUYP18svcGuFra3ioXattAOTkLyd85Tu0cR3pUmFXYAEX','user','ak_7c986202492d2c55','2023-04-21 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$S.JTlkXI2/tEmbgS.MdFQvS68j8q8eyIfxu.W0tz7u7zNKODR8nfA','admin','ak_5103210e51177547','2023-08-17 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=40546;

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


