-
Notifications
You must be signed in to change notification settings - Fork 3
/
Schema
30 lines (24 loc) · 1.29 KB
/
Schema
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
Schema for sensor info:
mysql> describe sensorinfo;
+----------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+---------+------+-----+---------+-------+
| sensorID | int(11) | NO | | NULL | |
| testDate | date | NO | | NULL | |
| testTime | time | NO | | NULL | |
| temp | int(11) | NO | | NULL | |
| humidity | int(11) | NO | | NULL | |
| userID | int(11) | NO | | NULL | |
+----------+---------+------+-----+---------+-------+
Schema for loginfo:
mysql> describe logininfo;
+-----------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+----------------+
| userID | int(11) | NO | PRI | NULL | auto_increment |
| firstName | varchar(20) | YES | | NULL | |
| lastName | varchar(20) | YES | | NULL | |
| username | varchar(20) | YES | | NULL | |
| password | varchar(20) | YES | | NULL | |
| email | varchar(50) | YES | | NULL | |
+-----------+-------------+------+-----+---------+----------------+