Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firediag
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hicham Brahimi
firediag
Commits
a17a9551
Commit
a17a9551
authored
5 years ago
by
Hicham Brahimi
Browse files
Options
Downloads
Patches
Plain Diff
Update backup.sql
parent
32df1735
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backup.sql
+34
-34
34 additions, 34 deletions
backup.sql
with
34 additions
and
34 deletions
backup.sql
+
34
−
34
View file @
a17a9551
--
--
-- Table structure for table `
capteu
r`
-- Table structure for table `
use
r`
--
--
DROP
TABLE
IF
EXISTS
`
capteu
r`
;
DROP
TABLE
IF
EXISTS
`
use
r`
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
;
/*!40101 SET character_set_client = utf8 */
;
CREATE
TABLE
`
capteu
r`
(
CREATE
TABLE
`
use
r`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`type`
enum
(
'num'
,
'map'
)
NOT
NULL
DEFAULT
'num'
,
`username`
varchar
(
30
)
NOT
NULL
,
`topic`
varchar
(
100
)
NOT
NULL
,
`password`
varchar
(
100
)
NOT
NULL
,
`nom`
varchar
(
50
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
`unite`
varchar
(
10
)
DEFAULT
'Val'
,
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
10
DEFAULT
CHARSET
=
latin1
;
`visible`
tinyint
(
1
)
NOT
NULL
DEFAULT
'1'
,
`idGroupe`
int
(
11
)
DEFAULT
NULL
,
`idUser`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`idGroupe`
(
`idGroupe`
),
KEY
`idUser`
(
`idUser`
),
CONSTRAINT
`capteur_ibfk_1`
FOREIGN
KEY
(
`idUser`
)
REFERENCES
`user`
(
`id`
),
CONSTRAINT
`idGroupe`
FOREIGN
KEY
(
`idGroupe`
)
REFERENCES
`groupe`
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
168
DEFAULT
CHARSET
=
latin1
;
--
--
...
@@ -39,6 +30,29 @@ CREATE TABLE `groupe` (
...
@@ -39,6 +30,29 @@ CREATE TABLE `groupe` (
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
latin1
;
--
-- Table structure for table `capteur`
--
DROP
TABLE
IF
EXISTS
`capteur`
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
;
CREATE
TABLE
`capteur`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`type`
enum
(
'num'
,
'map'
)
NOT
NULL
DEFAULT
'num'
,
`topic`
varchar
(
100
)
NOT
NULL
,
`nom`
varchar
(
50
)
NOT
NULL
,
`unite`
varchar
(
10
)
DEFAULT
'Val'
,
`visible`
tinyint
(
1
)
NOT
NULL
DEFAULT
'1'
,
`idGroupe`
int
(
11
)
DEFAULT
NULL
,
`idUser`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`idGroupe`
(
`idGroupe`
),
KEY
`idUser`
(
`idUser`
),
CONSTRAINT
`capteur_ibfk_1`
FOREIGN
KEY
(
`idUser`
)
REFERENCES
`user`
(
`id`
),
CONSTRAINT
`idGroupe`
FOREIGN
KEY
(
`idGroupe`
)
REFERENCES
`groupe`
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
168
DEFAULT
CHARSET
=
latin1
;
--
--
-- Table structure for table `notification`
-- Table structure for table `notification`
...
@@ -84,7 +98,6 @@ CREATE TABLE `seuil` (
...
@@ -84,7 +98,6 @@ CREATE TABLE `seuil` (
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
36
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
36
DEFAULT
CHARSET
=
latin1
;
--
--
-- Table structure for table `tag`
-- Table structure for table `tag`
--
--
...
@@ -102,23 +115,6 @@ CREATE TABLE `tag` (
...
@@ -102,23 +115,6 @@ CREATE TABLE `tag` (
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
132
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
132
DEFAULT
CHARSET
=
latin1
;
--
-- Table structure for table `user`
--
DROP
TABLE
IF
EXISTS
`user`
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
;
CREATE
TABLE
`user`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`username`
varchar
(
30
)
NOT
NULL
,
`password`
varchar
(
100
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
10
DEFAULT
CHARSET
=
latin1
;
--
--
-- Table structure for table `valeur`
-- Table structure for table `valeur`
--
--
...
@@ -136,4 +132,8 @@ CREATE TABLE `valeur` (
...
@@ -136,4 +132,8 @@ CREATE TABLE `valeur` (
CONSTRAINT
`idCapteur`
FOREIGN
KEY
(
`idCapteur`
)
REFERENCES
`capteur`
(
`id`
)
CONSTRAINT
`idCapteur`
FOREIGN
KEY
(
`idCapteur`
)
REFERENCES
`capteur`
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
488970
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
488970
DEFAULT
CHARSET
=
latin1
;
--
-- Ajout d'un index pour augmenter la vitesse de ORDER BY DESC
--
CREATE
INDEX
`index_valeurtemps`
ON
`valeur`
(
`temps`
);
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment