-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy path20101129_ajoutCompta.sql
125 lines (100 loc) · 3.37 KB
/
20101129_ajoutCompta.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
-- phpMyAdmin SQL Dump
-- version 3.1.3.1
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Lun 29 Novembre 2010 à 11:39
-- Version du serveur: 5.1.33
-- Version de PHP: 5.2.9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `afupcompta`
--
-- --------------------------------------------------------
--
-- Structure de la table `compta`
--
CREATE TABLE IF NOT EXISTS `compta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idclef` varchar(20) NOT NULL,
`idoperation` tinyint(5) NOT NULL,
`idcategorie` int(11) NOT NULL,
`date_ecriture` date NOT NULL,
`nom_frs` varchar(50) NOT NULL,
`montant` double(11,2) NOT NULL,
`description` varchar(255) NOT NULL,
`numero` varchar(50) NOT NULL,
`idmode_regl` tinyint(5) NOT NULL,
`date_regl` date NOT NULL,
`obs_regl` varchar(255) NOT NULL,
`idevenement` tinyint(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=450 ;
-- --------------------------------------------------------
--
-- Structure de la table `compta_categorie`
--
CREATE TABLE IF NOT EXISTS `compta_categorie` (
`id` tinyint(5) NOT NULL AUTO_INCREMENT,
`idevenement` int(11) NOT NULL,
`categorie` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ;
-- --------------------------------------------------------
--
-- Structure de la table `compta_evenement`
--
CREATE TABLE IF NOT EXISTS `compta_evenement` (
`id` tinyint(5) NOT NULL AUTO_INCREMENT,
`evenement` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;
-- --------------------------------------------------------
--
-- Structure de la table `compta_operation`
--
CREATE TABLE IF NOT EXISTS `compta_operation` (
`id` tinyint(5) NOT NULL AUTO_INCREMENT,
`operation` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Structure de la table `compta_periode`
--
CREATE TABLE IF NOT EXISTS `compta_periode` (
`id` tinyint(5) NOT NULL AUTO_INCREMENT,
`date_debut` date NOT NULL,
`date_fin` date NOT NULL,
`verouiller` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Structure de la table `compta_reglement`
--
CREATE TABLE IF NOT EXISTS `compta_reglement` (
`id` tinyint(5) NOT NULL AUTO_INCREMENT,
`reglement` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
-- --------------------------------------------------------
--
-- Structure de la table `compta_simulation`
--
CREATE TABLE IF NOT EXISTS `compta_simulation` (
`id` tinyint(5) NOT NULL AUTO_INCREMENT,
`idclef` varchar(20) NOT NULL,
`idcategorie` int(11) NOT NULL,
`montant_theo` double(11,2) NOT NULL,
`description` varchar(255) NOT NULL,
`idevenement` tinyint(5) NOT NULL,
`idoperation` tinyint(5) NOT NULL,
`periode` date NOT NULL,
`verouiller` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;