Commit 3af396ee authored by tbrehm's avatar tbrehm

Cleanup.

parent f62ced0b
WARNING
---------------------------------------------------------------------------------
The SQL dump in this directory is deprecated and is not maintained for a while.
It does not contain the latest database tables. The ispconfig3db.sql file
in this directory and the directory interface/sql/ will be removed. The latest
SQL dump is availabe in the directory install/sql/ispconfig3.sql
Please move any installer related code to the installer/... tree.
\ No newline at end of file
<?php
//*************************************************************************************
// DNS
//*************************************************************************************
//TODO - Enum
$tables['dns_rr'] = "
`id` I unsigned NOTNULL AUTO PRIMARY,
`sys_userid` I NOTNULL,
`sys_groupid` I NOTNULL,
`sys_perm_user` C(5) NOTNULL,
`sys_perm_group` C(5) NOTNULL,
`sys_perm_other` C(5) NOTNULL,
`server_id` I NOTNULL DEFAULT '1',
`zone` I unsigned NOTNULL,
`name` C(64) NOTNULL,
`type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') ,
`data` char(128) NOTNULL,
`aux` I unsigned NOTNULL DEFAULT '0',
`ttl` I unsigned NOTNULL DEFAULT '86400',
`active` enum('N','Y') NOTNULL DEFAULT 'Y'
";
//TODO char(255)
$tables['dns_soa'] = "
`id` I unsigned NOTNULL AUTO PRIMARY,
`sys_userid` I NOTNULL,
`sys_groupid` I NOTNULL,
`sys_perm_user` C(5) NOTNULL,
`sys_perm_group` C(5) NOTNULL,
`sys_perm_other` C(5) NOTNULL,
`server_id` I NOTNULL DEFAULT '1',
`origin` char(255) NOTNULL,
`ns` char(255) NOTNULL,
`mbox` char(255) NOTNULL,
`serial` I NOTNULL DEFAULT '1',
`refresh` I NOTNULL DEFAULT '28800',
`retry` I NOTNULL DEFAULT '7200',
`expire` I NOTNULL DEFAULT '604800',
`minimum` I NOTNULL DEFAULT '86400',
`ttl` I unsigned NOTNULL DEFAULT '86400',
`active` enum('Y','N') NOTNULL,
`xfer` char(255) NOTNULL
";
//*************************************************************************************
// Ftp Related
//*************************************************************************************
$tables['ftp_user'] = "
`ftp_user_id` I8 NOTNULL AUTO PRIMARY,
`sys_userid` I NOTNULL DEFAULT '0',
`sys_groupid` I NOTNULL DEFAULT '0',
`sys_perm_user` C(5),
`sys_perm_group` C(5),
`sys_perm_other` C(5),
`server_id` I NOTNULL DEFAULT '0',
`parent_domain_id` I NOTNULL DEFAULT '0',
`username` C(255),
`password` C(255),
`quota_size` I NOTNULL DEFAULT '-1',
`active` C(255) NOTNULL DEFAULT 'y',
`uid` C(255),
`gid` C(255),
`dir` C(255),
`quota_files` I NOTNULL DEFAULT '-1',
`ul_ratio` I NOTNULL DEFAULT '-1',
`dl_ratio` I NOTNULL DEFAULT '-1',
`ul_bandwidth` I NOTNULL DEFAULT '-1',
`dl_bandwidth` I NOTNULL DEFAULT '-1'
";
//*************************************************************************************
// Web Domain
//*************************************************************************************
$tables['web_domain'] = "
`domain_id` I8 NOTNULL AUTO PRIMARY,
`sys_userid` I NOTNULL DEFAULT '0',
`sys_groupid` I NOTNULL DEFAULT '0',
`sys_perm_user` C(5),
`sys_perm_group` C(5),
`sys_perm_other` C(5),
`server_id` I NOTNULL DEFAULT '0',
`ip_address` C(15) ,
`domain` C(255) ,
`type` C(255) NOTNULL DEFAULT 'y',
`parent_domain_id` I NOTNULL DEFAULT '0',
`vhost_type` C(255),
`document_root` C(255),
`system_user` C(255),
`system_group` C(255),
`hd_quota` I NOTNULL DEFAULT '0',
`traffic_quota` I NOTNULL DEFAULT '0',
`cgi` C(255) NOTNULL DEFAULT 'y',
`ssi` C(255) NOTNULL DEFAULT 'y',
`suexec` C(255) NOTNULL DEFAULT 'y',
`php` C(255) NOTNULL DEFAULT 'y',
`redirect_type` C(255),
`redirect_path` C(255),
`active` C(255) NOTNULL DEFAULT 'y'
";
?>
\ No newline at end of file
This diff is collapsed.
<?php
//*************************************************************************************
// Resellers, clients etc
//*************************************************************************************
$tables['client'] = "
`client_id` bigint(20) NOT NULL AUTO PRIMARY,
`sys_userid` int(11) NOTNULL DEFAULT '0',
`sys_groupid` int(11) NOTNULL DEFAULT '0',
`sys_perm_user` C(5),
`sys_perm_group` C(5),
`sys_perm_other` C(5),
`company_name` C(255),
`contact_name` C(255),
`street` C(255),
`zip` C(255),
`city` C(255),
`state` C(255),
`country` C(255),
`telephone` C(255),
`mobile` C(255),
`fax` C(255),
`email` C(255),
`internet` C(255) NOTNULL DEFAULT 'http://',
`icq` C(255),
`notes` text,
`default_mailserver` int(11) NOTNULL DEFAULT '1',
`limit_maildomain` int(11) NOTNULL DEFAULT '-1',
`limit_mailbox` int(11) NOTNULL DEFAULT '-1',
`limit_mailalias` int(11) NOTNULL DEFAULT '-1',
`limit_mailforward` int(11) NOTNULL DEFAULT '-1',
`limit_mailcatchall` int(11) NOTNULL DEFAULT '-1',
`limit_mailrouting` int(11) NOTNULL DEFAULT '0',
`limit_mailfilter` int(11) NOTNULL DEFAULT '-1',
`limit_fetchmail` int(11) NOTNULL DEFAULT '-1',
`limit_mailquota` int(11) NOTNULL DEFAULT '-1',
`limit_spamfilter_wblist` int(11) NOTNULL DEFAULT '0',
`limit_spamfilter_user` int(11) NOTNULL DEFAULT '0',
`limit_spamfilter_policy` int(11) NOTNULL DEFAULT '0',
`default_webserver` int(11) NOT NULL,
`limit_web_ip` text NOT NULL,
`username` C(255) ,
`password` C(255) ,
`language` C(255) NOTNULL DEFAULT 'en',
`usertheme` C(255) NOTNULL DEFAULT 'default'
";
$tables['reseller'] = "
reseller_id bigint(20) NOTNULL AUTO PRIMARY,
sys_userid I NOTNULL DEFAULT '0',
sys_groupid I NOTNULL DEFAULT '0',
sys_perm_user C(5) NOTNULL DEFAULT '',
sys_perm_group C(5) NOTNULL DEFAULT '',
sys_perm_other C(5) NOTNULL DEFAULT '',
company C(255) NOTNULL DEFAULT '',
title C(255) NOTNULL DEFAULT '',
firstname C(255) NOTNULL DEFAULT '',
surname C(255) NOTNULL DEFAULT '',
street C(255) NOTNULL DEFAULT '',
zip C(255) NOTNULL DEFAULT '',
city C(255) NOTNULL DEFAULT '',
country C(255) NOTNULL DEFAULT '',
telephone C(255) NOTNULL DEFAULT '',
mobile C(255) NOTNULL DEFAULT '',
fax C(255) NOTNULL DEFAULT '',
email C(255) NOTNULL DEFAULT '',
internet C(255) NOTNULL DEFAULT '',
icq C(255) NOTNULL DEFAULT '',
notes text NOTNULL,
limit_client I NOTNULL DEFAULT '-1',
limit_domain I NOTNULL DEFAULT '-1',
limit_subdomain I NOTNULL DEFAULT '-1',
limit_mailbox I NOTNULL DEFAULT '-1',
limit_mailalias I NOTNULL DEFAULT '-1',
limit_webquota I NOTNULL DEFAULT '-1',
limit_mailquota I NOTNULL DEFAULT '-1',
limit_database I NOTNULL DEFAULT '-1',
ip_address text NOTNULL
";
?>
\ No newline at end of file
<?php
//*************************************************************************************
// System Related
//*************************************************************************************
$tables['sys_datalog'] = "
datalog_id I8 NOTNULL AUTO PRIMARY,
server_id I NOTNULL,
dbtable C(255) NOTNULL DEFAULT '',
dbidx C(255) NOTNULL DEFAULT '',
action char(1) NOTNULL DEFAULT '',
tstamp I8 NOTNULL DEFAULT '0',
user C(255) NOTNULL DEFAULT '',
data X NOTNULL
";
$tables['sys_dbsync'] = "
id bigint(20) NOTNULL AUTO PRIMARY,
jobname C(255) NOTNULL DEFAULT '',
sync_interval_minutes I NOTNULL DEFAULT '0',
db_type C(255) NOTNULL DEFAULT '',
db_host C(255) NOTNULL DEFAULT '',
db_name C(255) NOTNULL DEFAULT '',
db_username C(255) NOTNULL DEFAULT '',
db_password C(255) NOTNULL DEFAULT '',
db_tables C(255) NOTNULL DEFAULT 'admin,forms',
empty_datalog I NOTNULL DEFAULT '0',
sync_datalog_external I NOTNULL DEFAULT '0',
active I NOTNULL DEFAULT '1',
last_datalog_id bigint(20) NOTNULL DEFAULT '0'
";
$tables['sys_filesync'] = "
id bigint(20) NOTNULL AUTO PRIMARY,
jobname C(255) NOTNULL DEFAULT '',
sync_interval_minutes I NOTNULL DEFAULT '0',
ftp_host C(255) NOTNULL DEFAULT '',
ftp_path C(255) NOTNULL DEFAULT '',
ftp_username C(255) NOTNULL DEFAULT '',
ftp_password C(255) NOTNULL DEFAULT '',
local_path C(255) NOTNULL DEFAULT '',
wput_options C(255) NOTNULL DEFAULT '--timestamping --reupload --dont-continue',
active I NOTNULL DEFAULT '1'
";
$tables['sys_group'] = "
groupid I NOTNULL AUTO PRIMARY,
name C(255) NOTNULL DEFAULT '',
description text NOTNULL,
client_id int(11) NOT NULL default '0'
";
$tables['sys_user'] = "
userid I NOTNULL AUTO PRIMARY,
sys_userid I NOTNULL DEFAULT '0',
sys_groupid I NOTNULL DEFAULT '0',
sys_perm_user C(5) NOTNULL DEFAULT '',
sys_perm_group C(5) NOTNULL DEFAULT '',
sys_perm_other C(5) NOTNULL DEFAULT '',
username C(100) NOTNULL DEFAULT '',
passwort C(100) NOTNULL DEFAULT '',
modules C(255) NOTNULL DEFAULT '',
startmodule C(255) NOTNULL DEFAULT '',
app_theme C(100) NOTNULL DEFAULT 'default',
typ C(20) NOTNULL DEFAULT 'user',
active tinyint(4) NOTNULL DEFAULT '1',
name C(100) NOTNULL DEFAULT '',
vorname C(100) NOTNULL DEFAULT '',
unternehmen C(100) NOTNULL DEFAULT '',
strasse C(100) NOTNULL DEFAULT '',
ort C(100) NOTNULL DEFAULT '',
plz C(10) NOTNULL DEFAULT '',
land C(50) NOTNULL DEFAULT '',
email C(100) NOTNULL DEFAULT '',
url C(255) NOTNULL DEFAULT '',
telefon C(100) NOTNULL DEFAULT '',
fax C(100) NOTNULL DEFAULT '',
language C(10) NOTNULL DEFAULT 'de',
groups C(255) NOTNULL DEFAULT '',
default_group I NOTNULL DEFAULT '0',
client_id I INDEX
";
?>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment