-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCreateTables.sql
More file actions
51 lines (40 loc) · 1.24 KB
/
CreateTables.sql
File metadata and controls
51 lines (40 loc) · 1.24 KB
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
-- Create tables for superscan database for `User_hashscan`
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `account_scanfiles`
--
-- --------------------------------------------------------
--
-- Table structure for table `baseline`
--
CREATE TABLE IF NOT EXISTS `baseline` (
`file_path` varchar(200) NOT NULL,
`file_hash` char(40) NOT NULL,
`file_last_mod` char(19),
`acct` varchar(20) CHARACTER SET utf8 NOT NULL DEFAULT 'Not specified',
PRIMARY KEY (`file_path`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `history`
--
CREATE TABLE IF NOT EXISTS `history` (
`stamp` char(19),
`status` varchar(10) NOT NULL,
`file_path` varchar(200) NOT NULL,
`hash_org` varchar(40) DEFAULT NULL,
`hash_new` varchar(40) DEFAULT NULL,
`file_last_mod` char(19),
`acct` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `scanned`
--
CREATE TABLE IF NOT EXISTS `scanned` (
`scanned` char(19),
`changes` int(11) NOT NULL DEFAULT '0',
`acct` varchar(20) NOT NULL,
PRIMARY KEY (`scanned`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;