Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.11 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.8.5
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: localhost
  6. -- Generation Time: 17-Out-2019 às 08:22
  7. -- Versão do servidor: 5.7.27-0ubuntu0.18.04.1-log
  8. -- versão do PHP: 7.2.19-0ubuntu0.18.04.2
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET AUTOCOMMIT = 0;
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14.  
  15.  
  16. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  17. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  18. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  19. /*!40101 SET NAMES utf8mb4 */;
  20.  
  21. --
  22. -- Database: `geodata`
  23. --
  24.  
  25. -- --------------------------------------------------------
  26.  
  27. --
  28. -- Estrutura da tabela `application_params`
  29. --
  30.  
  31. CREATE TABLE `application_params` (
  32.   `id` INT(10) UNSIGNED NOT NULL,
  33.   `min` FLOAT DEFAULT NULL,
  34.   `max` FLOAT DEFAULT NULL,
  35.   `allow_zero` tinyint(1) NOT NULL DEFAULT '1',
  36.   `price` FLOAT DEFAULT NULL,
  37.   `round_method` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 => Normal | 2 = > Floor | 3 => Ceil',
  38.   `application_id` INT(10) UNSIGNED NOT NULL,
  39.   `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  40.   `updated_at` TIMESTAMP NULL DEFAULT NULL
  41. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  42.  
  43. --
  44. -- Indexes for dumped tables
  45. --
  46.  
  47. --
  48. -- Indexes for table `application_params`
  49. --
  50. ALTER TABLE `application_params`
  51.   ADD PRIMARY KEY (`id`),
  52.   ADD KEY `application_params_application_id_foreign` (`application_id`);
  53.  
  54. --
  55. -- AUTO_INCREMENT for dumped tables
  56. --
  57.  
  58. --
  59. -- AUTO_INCREMENT for table `application_params`
  60. --
  61. ALTER TABLE `application_params`
  62.   MODIFY `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  63.  
  64. --
  65. -- Constraints for dumped tables
  66. --
  67.  
  68. --
  69. -- Limitadores para a tabela `application_params`
  70. --
  71. ALTER TABLE `application_params`
  72.   ADD CONSTRAINT `application_params_application_id_foreign` FOREIGN KEY (`application_id`) REFERENCES `applications` (`id`) ON DELETE CASCADE;
  73. COMMIT;
  74.  
  75. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  76. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  77. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement