aboutsummaryrefslogtreecommitdiffstats
path: root/database.sql
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-08 18:40:30 -0700
committerfriendica <info@friendica.com>2012-10-08 18:40:30 -0700
commit602960460a6206f20ec9cb69b3f5214391b8ddc4 (patch)
tree9003c0dbbc561ed9c87a285502ee98229123f621 /database.sql
parent5248c5075de825e3d53f04626ba250d7d740487d (diff)
downloadvolse-hubzilla-602960460a6206f20ec9cb69b3f5214391b8ddc4.tar.gz
volse-hubzilla-602960460a6206f20ec9cb69b3f5214391b8ddc4.tar.bz2
volse-hubzilla-602960460a6206f20ec9cb69b3f5214391b8ddc4.zip
abook structure
Diffstat (limited to 'database.sql')
-rw-r--r--database.sql18
1 files changed, 18 insertions, 0 deletions
diff --git a/database.sql b/database.sql
index 8cb634eaa..248502859 100644
--- a/database.sql
+++ b/database.sql
@@ -6,6 +6,21 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET NAMES utf8 */;
+CREATE TABLE IF NOT EXISTS `abook` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `account` int(10) unsigned NOT NULL,
+ `channel` int(10) unsigned NOT NULL,
+ `xchan` char(255) NOT NULL DEFAULT '',
+ `my_perms` int(11) NOT NULL DEFAULT '0',
+ `their_perms` int(11) NOT NULL DEFAULT '0',
+ `closeness` tinyint(3) unsigned NOT NULL DEFAULT '255',
+ `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `connnected` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `abook_flags` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
CREATE TABLE IF NOT EXISTS `account` (
`account_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`account_parent` int(10) unsigned NOT NULL DEFAULT '0',
@@ -849,11 +864,14 @@ CREATE TABLE IF NOT EXISTS `xchan` (
`xchan_hash` char(255) NOT NULL,
`xchan_guid` char(255) NOT NULL DEFAULT '',
`xchan_guid_sig` char(255) NOT NULL DEFAULT '',
+ `xchan_pubkey` text NOT NULL,
`xchan_photo` char(255) NOT NULL DEFAULT '',
`xchan_addr` char(255) NOT NULL DEFAULT '',
`xchan_profile` char(255) NOT NULL DEFAULT '',
`xchan_name` char(255) NOT NULL DEFAULT '',
`xchan_network` char(255) NOT NULL DEFAULT '',
+ `xchan_photo_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `xchan_name_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`xchan_hash`),
KEY `xchan_guid` (`xchan_guid`),
KEY `xchan_addr` (`xchan_addr`),