forked from ChristianBeer/ProFTPd-Admin
-
Notifications
You must be signed in to change notification settings - Fork 11
/
tables.sql
59 lines (54 loc) · 2.44 KB
/
tables.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
#
# Table structure for table `groups`
#
CREATE TABLE `groups` (
`groupname` varchar(32) NOT NULL default '',
`gid` smallint(6) unsigned NOT NULL auto_increment,
`members` varchar(255) NOT NULL default '',
PRIMARY KEY (`gid`),
UNIQUE KEY `groupname` (`groupname`)
) ENGINE=MyISAM COMMENT='ProFTPd group table';
#
# Table structure for table `users`
#
CREATE TABLE `users` (
`id` smallint(2) unsigned NOT NULL auto_increment,
`userid` varchar(64) NOT NULL default '',
`uid` smallint(6) unsigned default NULL,
`gid` smallint(6) unsigned default NULL,
`passwd` varchar(265) NOT NULL default '',
`homedir` varchar(255) NOT NULL default '',
`comment` varchar(255) NOT NULL default '',
`disabled` smallint(2) unsigned NOT NULL default '0',
`shell` varchar(32) NOT NULL default '/bin/false',
`sshpubkey` varchar(8192) NOT NULL default '',
`email` varchar(255) NOT NULL default '',
`name` varchar(255) NOT NULL default '',
`title` varchar(5) NOT NULL default '',
`company` varchar(255) NOT NULL default '',
`quota_type` enum('user','group','class','all') NOT NULL default 'user',
`per_session` enum('false','true') NOT NULL default 'false',
`limit_type` enum('soft','hard') NOT NULL default 'soft',
`bytes_in_used` bigint(20) unsigned NOT NULL default '0',
`bytes_out_used` bigint(20) unsigned NOT NULL default '0',
`bytes_xfer_avail` int(10) unsigned NOT NULL default '0',
`files_in_used` bigint(20) unsigned NOT NULL default '0',
`files_out_used` bigint(20) unsigned NOT NULL default '0',
`files_xfer_avail` int(10) unsigned NOT NULL default '0',
`login_count` int(11) unsigned NOT NULL default '0',
`last_login` datetime NOT NULL default '0000-00-00 00:00:00',
`last_modified` datetime NOT NULL default '0000-00-00 00:00:00',
`expiration` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM COMMENT='ProFTPd user table';
CREATE TABLE quotatallies (
`name` varchar(30) NOT NULL default '',
`quota_type` enum('user','group','class','all') NOT NULL default 'user',
`bytes_in_used` int(10) unsigned NOT NULL default '0',
`bytes_out_used` int(10) unsigned NOT NULL default '0',
`bytes_xfer_used` int(10) unsigned NOT NULL default '0',
`files_in_used` int(10) unsigned NOT NULL default '0',
`files_out_used` int(10) unsigned NOT NULL default '0',
`files_xfer_used` int(10) unsigned NOT NULL default '0'
) ENGINE=MyISAM COMMENT='ProFTPd Quota table';