Bug #27286 » db.sql

Fernando Arconada, 2011-06-07 23:12

 
1
-- MySQL dump 10.13  Distrib 5.5.12, for Linux (i686)
2
--
3
-- Host: localhost    Database: flow3
4
-- ------------------------------------------------------
5
-- Server version	5.5.12
6

    
7
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10
/*!40101 SET NAMES utf8 */;
11
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12
/*!40103 SET TIME_ZONE='+00:00' */;
13
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17

    
18
--
19
-- Table structure for table `gasto`
20
--
21

    
22
DROP TABLE IF EXISTS `gasto`;
23
/*!40101 SET @saved_cs_client     = @@character_set_client */;
24
/*!40101 SET character_set_client = utf8 */;
25
CREATE TABLE `gasto` (
26
  `id` int(11) NOT NULL AUTO_INCREMENT,
27
  `fecha` date NOT NULL,
28
  `notas` tinytext NOT NULL,
29
  `empresa_id` int(11) DEFAULT NULL,
30
  `cuenta_id` int(11) DEFAULT NULL,
31
  `cantidad` decimal(10,0) NOT NULL,
32
  PRIMARY KEY (`id`),
33
  KEY `gasto_FI_1` (`empresa_id`),
34
  KEY `gasto_FI_2` (`cuenta_id`),
35
  CONSTRAINT `gasto_FK_1` FOREIGN KEY (`empresa_id`) REFERENCES `empresa` (`id`),
36
  CONSTRAINT `gasto_FK_2` FOREIGN KEY (`cuenta_id`) REFERENCES `cuenta` (`id`)
37
) ENGINE=InnoDB AUTO_INCREMENT=2397 DEFAULT CHARSET=latin1;
38
/*!40101 SET character_set_client = @saved_cs_client */;
39

    
40
--
41
-- Dumping data for table `gasto`
42
--
43
-- WHERE:  notas like 'Santo%'
44

    
45
LOCK TABLES `gasto` WRITE;
46
/*!40000 ALTER TABLE `gasto` DISABLE KEYS */;
47
INSERT INTO `gasto` VALUES (5,'2006-08-07','Santoña/Laredo 18/8/06',2,9,55),(18,'2006-08-18','Santoña',1,2,26),(19,'2006-08-18','Santoña',1,10,23),(20,'2006-08-18','Santoña',2,10,34);
48
/*!40000 ALTER TABLE `gasto` ENABLE KEYS */;
49
UNLOCK TABLES;
50
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
51

    
52
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
53
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
54
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
55
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
56
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
57
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
58
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
59

    
60
-- Dump completed on 2011-06-07 22:54:43
(1-1/2)