Rearranged fields
This commit is contained in:
parent
7c2913488c
commit
84666a314a
4 changed files with 170 additions and 167 deletions
82
database.sql
82
database.sql
|
@ -114,29 +114,16 @@ CREATE TABLE IF NOT EXISTS `contact` (
|
||||||
`uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
|
`uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
|
||||||
`created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
`created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
||||||
`updated` datetime DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last contact update',
|
`updated` datetime DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last contact update',
|
||||||
`self` boolean NOT NULL DEFAULT '0' COMMENT '1 if the contact is the user him/her self',
|
|
||||||
`remote_self` boolean NOT NULL DEFAULT '0' COMMENT '',
|
|
||||||
`rel` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'The kind of the relation between the user and the contact',
|
|
||||||
`duplex` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
|
||||||
`network` char(4) NOT NULL DEFAULT '' COMMENT 'Network of the contact',
|
`network` char(4) NOT NULL DEFAULT '' COMMENT 'Network of the contact',
|
||||||
`protocol` char(4) NOT NULL DEFAULT '' COMMENT 'Protocol of the contact',
|
|
||||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Name that this contact is known by',
|
`name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Name that this contact is known by',
|
||||||
`nick` varchar(255) NOT NULL DEFAULT '' COMMENT 'Nick- and user name of the contact',
|
`nick` varchar(255) NOT NULL DEFAULT '' COMMENT 'Nick- and user name of the contact',
|
||||||
`location` varchar(255) DEFAULT '' COMMENT '',
|
`location` varchar(255) DEFAULT '' COMMENT '',
|
||||||
`about` text COMMENT '',
|
`about` text COMMENT '',
|
||||||
`keywords` text COMMENT 'public keywords (interests) of the contact',
|
`keywords` text COMMENT 'public keywords (interests) of the contact',
|
||||||
`gender` varchar(32) NOT NULL DEFAULT '' COMMENT 'Deprecated',
|
|
||||||
`xmpp` varchar(255) NOT NULL DEFAULT '' COMMENT 'XMPP address',
|
`xmpp` varchar(255) NOT NULL DEFAULT '' COMMENT 'XMPP address',
|
||||||
`matrix` varchar(255) NOT NULL DEFAULT '' COMMENT 'Matrix address',
|
`matrix` varchar(255) NOT NULL DEFAULT '' COMMENT 'Matrix address',
|
||||||
`attag` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
|
||||||
`avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
`avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
`photo` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo of the contact',
|
|
||||||
`thumb` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo (thumb size)',
|
|
||||||
`micro` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo (micro size)',
|
|
||||||
`header` varchar(255) COMMENT 'Header picture',
|
`header` varchar(255) COMMENT 'Header picture',
|
||||||
`site-pubkey` text COMMENT 'Deprecated',
|
|
||||||
`issued-id` varchar(255) NOT NULL DEFAULT '' COMMENT 'Deprecated',
|
|
||||||
`dfrn-id` varchar(255) NOT NULL DEFAULT '' COMMENT 'Deprecated',
|
|
||||||
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
`nurl` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
`nurl` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
`uri-id` int unsigned COMMENT 'Id of the item-uri table entry that contains the contact url',
|
`uri-id` int unsigned COMMENT 'Id of the item-uri table entry that contains the contact url',
|
||||||
|
@ -145,54 +132,67 @@ CREATE TABLE IF NOT EXISTS `contact` (
|
||||||
`pubkey` text COMMENT 'RSA public key 4096 bit',
|
`pubkey` text COMMENT 'RSA public key 4096 bit',
|
||||||
`prvkey` text COMMENT 'RSA private key 4096 bit',
|
`prvkey` text COMMENT 'RSA private key 4096 bit',
|
||||||
`batch` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
`batch` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
`request` varchar(255) COMMENT '',
|
|
||||||
`notify` varchar(255) COMMENT '',
|
`notify` varchar(255) COMMENT '',
|
||||||
`poll` varchar(255) COMMENT '',
|
`poll` varchar(255) COMMENT '',
|
||||||
`confirm` varchar(255) COMMENT '',
|
|
||||||
`subscribe` varchar(255) COMMENT '',
|
`subscribe` varchar(255) COMMENT '',
|
||||||
`poco` varchar(255) COMMENT '',
|
|
||||||
`aes_allow` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
|
||||||
`ret-aes` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
|
||||||
`usehub` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
|
||||||
`subhub` boolean NOT NULL DEFAULT '0' COMMENT '',
|
|
||||||
`hub-verify` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
|
||||||
`last-update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last try to update the contact info',
|
`last-update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last try to update the contact info',
|
||||||
`success_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last successful contact update',
|
`success_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last successful contact update',
|
||||||
`failure_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last failed update',
|
`failure_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of the last failed update',
|
||||||
`failed` boolean COMMENT 'Connection failed',
|
`failed` boolean COMMENT 'Connection failed',
|
||||||
`name-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
|
||||||
`uri-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
|
||||||
`avatar-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
|
||||||
`term-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
`term-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
||||||
`last-item` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'date of the last post',
|
`last-item` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'date of the last post',
|
||||||
`last-discovery` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'date of the last follower discovery',
|
`last-discovery` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'date of the last follower discovery',
|
||||||
`priority` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '',
|
|
||||||
`blocked` boolean NOT NULL DEFAULT '1' COMMENT 'Node-wide block status',
|
`blocked` boolean NOT NULL DEFAULT '1' COMMENT 'Node-wide block status',
|
||||||
`block_reason` text COMMENT 'Node-wide block reason',
|
`block_reason` text COMMENT 'Node-wide block reason',
|
||||||
`readonly` boolean NOT NULL DEFAULT '0' COMMENT 'posts of the contact are readonly',
|
`readonly` boolean NOT NULL DEFAULT '0' COMMENT 'posts of the contact are readonly',
|
||||||
`writable` boolean NOT NULL DEFAULT '0' COMMENT '',
|
`contact-type` tinyint NOT NULL DEFAULT 0 COMMENT 'Person, organisation, news, community, relay',
|
||||||
`forum` boolean NOT NULL DEFAULT '0' COMMENT 'contact is a forum',
|
`manually-approve` boolean COMMENT 'Contact requests have to be approved manually',
|
||||||
`prv` boolean NOT NULL DEFAULT '0' COMMENT 'contact is a private group',
|
|
||||||
`contact-type` tinyint NOT NULL DEFAULT 0 COMMENT '',
|
|
||||||
`manually-approve` boolean COMMENT '',
|
|
||||||
`hidden` boolean NOT NULL DEFAULT '0' COMMENT '',
|
|
||||||
`archive` boolean NOT NULL DEFAULT '0' COMMENT '',
|
`archive` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
`pending` boolean NOT NULL DEFAULT '1' COMMENT '',
|
|
||||||
`deleted` boolean NOT NULL DEFAULT '0' COMMENT 'Contact has been deleted',
|
|
||||||
`rating` tinyint NOT NULL DEFAULT 0 COMMENT '',
|
|
||||||
`unsearchable` boolean NOT NULL DEFAULT '0' COMMENT 'Contact prefers to not be searchable',
|
`unsearchable` boolean NOT NULL DEFAULT '0' COMMENT 'Contact prefers to not be searchable',
|
||||||
`sensitive` boolean NOT NULL DEFAULT '0' COMMENT 'Contact posts sensitive content',
|
`sensitive` boolean NOT NULL DEFAULT '0' COMMENT 'Contact posts sensitive content',
|
||||||
`baseurl` varchar(255) DEFAULT '' COMMENT 'baseurl of the contact',
|
`baseurl` varchar(255) DEFAULT '' COMMENT 'baseurl of the contact',
|
||||||
`gsid` int unsigned COMMENT 'Global Server ID',
|
`gsid` int unsigned COMMENT 'Global Server ID',
|
||||||
`reason` text COMMENT '',
|
|
||||||
`closeness` tinyint unsigned NOT NULL DEFAULT 99 COMMENT 'Deprecated',
|
|
||||||
`info` mediumtext COMMENT '',
|
|
||||||
`profile-id` int unsigned COMMENT 'Deprecated',
|
|
||||||
`bdyear` varchar(4) NOT NULL DEFAULT '' COMMENT '',
|
|
||||||
`bd` date NOT NULL DEFAULT '0001-01-01' COMMENT '',
|
`bd` date NOT NULL DEFAULT '0001-01-01' COMMENT '',
|
||||||
|
`reason` text COMMENT '',
|
||||||
|
`self` boolean NOT NULL DEFAULT '0' COMMENT '1 if the contact is the user him/her self',
|
||||||
|
`remote_self` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
|
`rel` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'The kind of the relation between the user and the contact',
|
||||||
|
`protocol` char(4) NOT NULL DEFAULT '' COMMENT 'Protocol of the contact',
|
||||||
|
`subhub` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
|
`hub-verify` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
|
`rating` tinyint NOT NULL DEFAULT 0 COMMENT 'Automatically detected feed poll frequency',
|
||||||
|
`priority` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Feed poll priority',
|
||||||
|
`attag` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
|
`hidden` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
|
`pending` boolean NOT NULL DEFAULT '1' COMMENT 'Contact request is pending',
|
||||||
|
`deleted` boolean NOT NULL DEFAULT '0' COMMENT 'Contact has been deleted',
|
||||||
|
`info` mediumtext COMMENT '',
|
||||||
`notify_new_posts` boolean NOT NULL DEFAULT '0' COMMENT '',
|
`notify_new_posts` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
`fetch_further_information` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '',
|
`fetch_further_information` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '',
|
||||||
`ffi_keyword_denylist` text COMMENT '',
|
`ffi_keyword_denylist` text COMMENT '',
|
||||||
|
`photo` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo of the contact',
|
||||||
|
`thumb` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo (thumb size)',
|
||||||
|
`micro` varchar(255) DEFAULT '' COMMENT 'Link to the profile photo (micro size)',
|
||||||
|
`name-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
||||||
|
`uri-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
||||||
|
`avatar-date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
||||||
|
`request` varchar(255) COMMENT '',
|
||||||
|
`confirm` varchar(255) COMMENT '',
|
||||||
|
`poco` varchar(255) COMMENT '',
|
||||||
|
`writable` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
|
`forum` boolean NOT NULL DEFAULT '0' COMMENT 'contact is a forum. Deprecated, use \'contact-type\' = \'community\' and \'manually-approve\' = false instead',
|
||||||
|
`prv` boolean NOT NULL DEFAULT '0' COMMENT 'contact is a private group. Deprecated, use \'contact-type\' = \'community\' and \'manually-approve\' = true instead',
|
||||||
|
`bdyear` varchar(4) NOT NULL DEFAULT '' COMMENT '',
|
||||||
|
`site-pubkey` text COMMENT 'Deprecated',
|
||||||
|
`gender` varchar(32) NOT NULL DEFAULT '' COMMENT 'Deprecated',
|
||||||
|
`duplex` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
||||||
|
`issued-id` varchar(255) NOT NULL DEFAULT '' COMMENT 'Deprecated',
|
||||||
|
`dfrn-id` varchar(255) NOT NULL DEFAULT '' COMMENT 'Deprecated',
|
||||||
|
`aes_allow` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
||||||
|
`ret-aes` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
||||||
|
`usehub` boolean NOT NULL DEFAULT '0' COMMENT 'Deprecated',
|
||||||
|
`closeness` tinyint unsigned NOT NULL DEFAULT 99 COMMENT 'Deprecated',
|
||||||
|
`profile-id` int unsigned COMMENT 'Deprecated',
|
||||||
PRIMARY KEY(`id`),
|
PRIMARY KEY(`id`),
|
||||||
INDEX `uid_name` (`uid`,`name`(190)),
|
INDEX `uid_name` (`uid`,`name`(190)),
|
||||||
INDEX `self_uid` (`self`,`uid`),
|
INDEX `self_uid` (`self`,`uid`),
|
||||||
|
@ -2461,7 +2461,7 @@ CREATE VIEW `account-user-view` AS SELECT
|
||||||
`contact`.`network` AS `network`,
|
`contact`.`network` AS `network`,
|
||||||
`ucontact`.`protocol` AS `protocol`,
|
`ucontact`.`protocol` AS `protocol`,
|
||||||
`contact`.`location` AS `location`,
|
`contact`.`location` AS `location`,
|
||||||
`contact`.`attag` AS `attag`,
|
`ucontact`.`attag` AS `attag`,
|
||||||
`contact`.`pubkey` AS `pubkey`,
|
`contact`.`pubkey` AS `pubkey`,
|
||||||
`contact`.`prvkey` AS `prvkey`,
|
`contact`.`prvkey` AS `prvkey`,
|
||||||
`contact`.`subscribe` AS `subscribe`,
|
`contact`.`subscribe` AS `subscribe`,
|
||||||
|
@ -2477,7 +2477,7 @@ CREATE VIEW `account-user-view` AS SELECT
|
||||||
`contact`.`sensitive` AS `sensitive`,
|
`contact`.`sensitive` AS `sensitive`,
|
||||||
`contact`.`baseurl` AS `baseurl`,
|
`contact`.`baseurl` AS `baseurl`,
|
||||||
`contact`.`gsid` AS `gsid`,
|
`contact`.`gsid` AS `gsid`,
|
||||||
`contact`.`info` AS `info`,
|
`ucontact`.`info` AS `info`,
|
||||||
`contact`.`bdyear` AS `bdyear`,
|
`contact`.`bdyear` AS `bdyear`,
|
||||||
`contact`.`bd` AS `bd`,
|
`contact`.`bd` AS `bd`,
|
||||||
`contact`.`poco` AS `poco`,
|
`contact`.`poco` AS `poco`,
|
||||||
|
|
|
@ -6,91 +6,91 @@ contact table
|
||||||
Fields
|
Fields
|
||||||
------
|
------
|
||||||
|
|
||||||
| Field | Description | Type | Null | Key | Default | Extra |
|
| Field | Description | Type | Null | Key | Default | Extra |
|
||||||
| ------------------------- | ------------------------------------------------------------ | ------------------ | ---- | --- | ------------------- | -------------- |
|
| ------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
|
||||||
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
|
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
|
||||||
| uid | Owner User id | mediumint unsigned | NO | | 0 | |
|
| uid | Owner User id | mediumint unsigned | NO | | 0 | |
|
||||||
| created | | datetime | NO | | 0001-01-01 00:00:00 | |
|
| created | | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| updated | Date of last contact update | datetime | YES | | 0001-01-01 00:00:00 | |
|
| updated | Date of last contact update | datetime | YES | | 0001-01-01 00:00:00 | |
|
||||||
| self | 1 if the contact is the user him/her self | boolean | NO | | 0 | |
|
| network | Network of the contact | char(4) | NO | | | |
|
||||||
| remote_self | | boolean | NO | | 0 | |
|
| name | Name that this contact is known by | varchar(255) | NO | | | |
|
||||||
| rel | The kind of the relation between the user and the contact | tinyint unsigned | NO | | 0 | |
|
| nick | Nick- and user name of the contact | varchar(255) | NO | | | |
|
||||||
| duplex | Deprecated | boolean | NO | | 0 | |
|
| location | | varchar(255) | YES | | | |
|
||||||
| network | Network of the contact | char(4) | NO | | | |
|
| about | | text | YES | | NULL | |
|
||||||
| protocol | Protocol of the contact | char(4) | NO | | | |
|
| keywords | public keywords (interests) of the contact | text | YES | | NULL | |
|
||||||
| name | Name that this contact is known by | varchar(255) | NO | | | |
|
| xmpp | XMPP address | varchar(255) | NO | | | |
|
||||||
| nick | Nick- and user name of the contact | varchar(255) | NO | | | |
|
| matrix | Matrix address | varchar(255) | NO | | | |
|
||||||
| location | | varchar(255) | YES | | | |
|
| avatar | | varchar(255) | NO | | | |
|
||||||
| about | | text | YES | | NULL | |
|
| header | Header picture | varchar(255) | YES | | NULL | |
|
||||||
| keywords | public keywords (interests) of the contact | text | YES | | NULL | |
|
| url | | varchar(255) | NO | | | |
|
||||||
| gender | Deprecated | varchar(32) | NO | | | |
|
| nurl | | varchar(255) | NO | | | |
|
||||||
| xmpp | XMPP address | varchar(255) | NO | | | |
|
| uri-id | Id of the item-uri table entry that contains the contact url | int unsigned | YES | | NULL | |
|
||||||
| matrix | Matrix address | varchar(255) | NO | | | |
|
| addr | | varchar(255) | NO | | | |
|
||||||
| attag | | varchar(255) | NO | | | |
|
| alias | | varchar(255) | NO | | | |
|
||||||
| avatar | | varchar(255) | NO | | | |
|
| pubkey | RSA public key 4096 bit | text | YES | | NULL | |
|
||||||
| photo | Link to the profile photo of the contact | varchar(255) | YES | | | |
|
| prvkey | RSA private key 4096 bit | text | YES | | NULL | |
|
||||||
| thumb | Link to the profile photo (thumb size) | varchar(255) | YES | | | |
|
| batch | | varchar(255) | NO | | | |
|
||||||
| micro | Link to the profile photo (micro size) | varchar(255) | YES | | | |
|
| notify | | varchar(255) | YES | | NULL | |
|
||||||
| header | Header picture | varchar(255) | YES | | NULL | |
|
| poll | | varchar(255) | YES | | NULL | |
|
||||||
| site-pubkey | Deprecated | text | YES | | NULL | |
|
| subscribe | | varchar(255) | YES | | NULL | |
|
||||||
| issued-id | Deprecated | varchar(255) | NO | | | |
|
| last-update | Date of the last try to update the contact info | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| dfrn-id | Deprecated | varchar(255) | NO | | | |
|
| success_update | Date of the last successful contact update | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| url | | varchar(255) | NO | | | |
|
| failure_update | Date of the last failed update | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| nurl | | varchar(255) | NO | | | |
|
| failed | Connection failed | boolean | YES | | NULL | |
|
||||||
| uri-id | Id of the item-uri table entry that contains the contact url | int unsigned | YES | | NULL | |
|
| term-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| addr | | varchar(255) | NO | | | |
|
| last-item | date of the last post | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| alias | | varchar(255) | NO | | | |
|
| last-discovery | date of the last follower discovery | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| pubkey | RSA public key 4096 bit | text | YES | | NULL | |
|
| blocked | Node-wide block status | boolean | NO | | 1 | |
|
||||||
| prvkey | RSA private key 4096 bit | text | YES | | NULL | |
|
| block_reason | Node-wide block reason | text | YES | | NULL | |
|
||||||
| batch | | varchar(255) | NO | | | |
|
| readonly | posts of the contact are readonly | boolean | NO | | 0 | |
|
||||||
| request | | varchar(255) | YES | | NULL | |
|
| contact-type | Person, organisation, news, community, relay | tinyint | NO | | 0 | |
|
||||||
| notify | | varchar(255) | YES | | NULL | |
|
| manually-approve | Contact requests have to be approved manually | boolean | YES | | NULL | |
|
||||||
| poll | | varchar(255) | YES | | NULL | |
|
| archive | | boolean | NO | | 0 | |
|
||||||
| confirm | | varchar(255) | YES | | NULL | |
|
| unsearchable | Contact prefers to not be searchable | boolean | NO | | 0 | |
|
||||||
| subscribe | | varchar(255) | YES | | NULL | |
|
| sensitive | Contact posts sensitive content | boolean | NO | | 0 | |
|
||||||
| poco | | varchar(255) | YES | | NULL | |
|
| baseurl | baseurl of the contact | varchar(255) | YES | | | |
|
||||||
| aes_allow | Deprecated | boolean | NO | | 0 | |
|
| gsid | Global Server ID | int unsigned | YES | | NULL | |
|
||||||
| ret-aes | Deprecated | boolean | NO | | 0 | |
|
| bd | | date | NO | | 0001-01-01 | |
|
||||||
| usehub | Deprecated | boolean | NO | | 0 | |
|
| reason | | text | YES | | NULL | |
|
||||||
| subhub | | boolean | NO | | 0 | |
|
| self | 1 if the contact is the user him/her self | boolean | NO | | 0 | |
|
||||||
| hub-verify | | varchar(255) | NO | | | |
|
| remote_self | | boolean | NO | | 0 | |
|
||||||
| last-update | Date of the last try to update the contact info | datetime | NO | | 0001-01-01 00:00:00 | |
|
| rel | The kind of the relation between the user and the contact | tinyint unsigned | NO | | 0 | |
|
||||||
| success_update | Date of the last successful contact update | datetime | NO | | 0001-01-01 00:00:00 | |
|
| protocol | Protocol of the contact | char(4) | NO | | | |
|
||||||
| failure_update | Date of the last failed update | datetime | NO | | 0001-01-01 00:00:00 | |
|
| subhub | | boolean | NO | | 0 | |
|
||||||
| failed | Connection failed | boolean | YES | | NULL | |
|
| hub-verify | | varchar(255) | NO | | | |
|
||||||
| name-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
| rating | Automatically detected feed poll frequency | tinyint | NO | | 0 | |
|
||||||
| uri-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
| priority | Feed poll priority | tinyint unsigned | NO | | 0 | |
|
||||||
| avatar-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
| attag | | varchar(255) | NO | | | |
|
||||||
| term-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
| hidden | | boolean | NO | | 0 | |
|
||||||
| last-item | date of the last post | datetime | NO | | 0001-01-01 00:00:00 | |
|
| pending | Contact request is pending | boolean | NO | | 1 | |
|
||||||
| last-discovery | date of the last follower discovery | datetime | NO | | 0001-01-01 00:00:00 | |
|
| deleted | Contact has been deleted | boolean | NO | | 0 | |
|
||||||
| priority | | tinyint unsigned | NO | | 0 | |
|
| info | | mediumtext | YES | | NULL | |
|
||||||
| blocked | Node-wide block status | boolean | NO | | 1 | |
|
| notify_new_posts | | boolean | NO | | 0 | |
|
||||||
| block_reason | Node-wide block reason | text | YES | | NULL | |
|
| fetch_further_information | | tinyint unsigned | NO | | 0 | |
|
||||||
| readonly | posts of the contact are readonly | boolean | NO | | 0 | |
|
| ffi_keyword_denylist | | text | YES | | NULL | |
|
||||||
| writable | | boolean | NO | | 0 | |
|
| photo | Link to the profile photo of the contact | varchar(255) | YES | | | |
|
||||||
| forum | contact is a forum | boolean | NO | | 0 | |
|
| thumb | Link to the profile photo (thumb size) | varchar(255) | YES | | | |
|
||||||
| prv | contact is a private group | boolean | NO | | 0 | |
|
| micro | Link to the profile photo (micro size) | varchar(255) | YES | | | |
|
||||||
| contact-type | | tinyint | NO | | 0 | |
|
| name-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| manually-approve | | boolean | YES | | NULL | |
|
| uri-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| hidden | | boolean | NO | | 0 | |
|
| avatar-date | | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||||
| archive | | boolean | NO | | 0 | |
|
| request | | varchar(255) | YES | | NULL | |
|
||||||
| pending | | boolean | NO | | 1 | |
|
| confirm | | varchar(255) | YES | | NULL | |
|
||||||
| deleted | Contact has been deleted | boolean | NO | | 0 | |
|
| poco | | varchar(255) | YES | | NULL | |
|
||||||
| rating | | tinyint | NO | | 0 | |
|
| writable | | boolean | NO | | 0 | |
|
||||||
| unsearchable | Contact prefers to not be searchable | boolean | NO | | 0 | |
|
| forum | contact is a forum. Deprecated, use 'contact-type' = 'community' and 'manually-approve' = false instead | boolean | NO | | 0 | |
|
||||||
| sensitive | Contact posts sensitive content | boolean | NO | | 0 | |
|
| prv | contact is a private group. Deprecated, use 'contact-type' = 'community' and 'manually-approve' = true instead | boolean | NO | | 0 | |
|
||||||
| baseurl | baseurl of the contact | varchar(255) | YES | | | |
|
| bdyear | | varchar(4) | NO | | | |
|
||||||
| gsid | Global Server ID | int unsigned | YES | | NULL | |
|
| site-pubkey | Deprecated | text | YES | | NULL | |
|
||||||
| reason | | text | YES | | NULL | |
|
| gender | Deprecated | varchar(32) | NO | | | |
|
||||||
| closeness | Deprecated | tinyint unsigned | NO | | 99 | |
|
| duplex | Deprecated | boolean | NO | | 0 | |
|
||||||
| info | | mediumtext | YES | | NULL | |
|
| issued-id | Deprecated | varchar(255) | NO | | | |
|
||||||
| profile-id | Deprecated | int unsigned | YES | | NULL | |
|
| dfrn-id | Deprecated | varchar(255) | NO | | | |
|
||||||
| bdyear | | varchar(4) | NO | | | |
|
| aes_allow | Deprecated | boolean | NO | | 0 | |
|
||||||
| bd | | date | NO | | 0001-01-01 | |
|
| ret-aes | Deprecated | boolean | NO | | 0 | |
|
||||||
| notify_new_posts | | boolean | NO | | 0 | |
|
| usehub | Deprecated | boolean | NO | | 0 | |
|
||||||
| fetch_further_information | | tinyint unsigned | NO | | 0 | |
|
| closeness | Deprecated | tinyint unsigned | NO | | 99 | |
|
||||||
| ffi_keyword_denylist | | text | YES | | NULL | |
|
| profile-id | Deprecated | int unsigned | YES | | NULL | |
|
||||||
|
|
||||||
Indexes
|
Indexes
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -172,29 +172,16 @@ return [
|
||||||
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
|
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
|
||||||
"created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
"created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||||
"updated" => ["type" => "datetime", "default" => DBA::NULL_DATETIME, "comment" => "Date of last contact update"],
|
"updated" => ["type" => "datetime", "default" => DBA::NULL_DATETIME, "comment" => "Date of last contact update"],
|
||||||
"self" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "1 if the contact is the user him/her self"],
|
|
||||||
"remote_self" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
|
||||||
"rel" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "The kind of the relation between the user and the contact"],
|
|
||||||
"duplex" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
|
||||||
"network" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => "Network of the contact"],
|
"network" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => "Network of the contact"],
|
||||||
"protocol" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => "Protocol of the contact"],
|
|
||||||
"name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Name that this contact is known by"],
|
"name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Name that this contact is known by"],
|
||||||
"nick" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Nick- and user name of the contact"],
|
"nick" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Nick- and user name of the contact"],
|
||||||
"location" => ["type" => "varchar(255)", "default" => "", "comment" => ""],
|
"location" => ["type" => "varchar(255)", "default" => "", "comment" => ""],
|
||||||
"about" => ["type" => "text", "comment" => ""],
|
"about" => ["type" => "text", "comment" => ""],
|
||||||
"keywords" => ["type" => "text", "comment" => "public keywords (interests) of the contact"],
|
"keywords" => ["type" => "text", "comment" => "public keywords (interests) of the contact"],
|
||||||
"gender" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => "Deprecated"],
|
|
||||||
"xmpp" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "XMPP address"],
|
"xmpp" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "XMPP address"],
|
||||||
"matrix" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Matrix address"],
|
"matrix" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Matrix address"],
|
||||||
"attag" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
|
||||||
"avatar" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
"avatar" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
"photo" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo of the contact"],
|
|
||||||
"thumb" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo (thumb size)"],
|
|
||||||
"micro" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo (micro size)"],
|
|
||||||
"header" => ["type" => "varchar(255)", "comment" => "Header picture"],
|
"header" => ["type" => "varchar(255)", "comment" => "Header picture"],
|
||||||
"site-pubkey" => ["type" => "text", "comment" => "Deprecated"],
|
|
||||||
"issued-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Deprecated"],
|
|
||||||
"dfrn-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Deprecated"],
|
|
||||||
"url" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
"url" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
"nurl" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
"nurl" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
"uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the contact url"],
|
"uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the contact url"],
|
||||||
|
@ -203,54 +190,70 @@ return [
|
||||||
"pubkey" => ["type" => "text", "comment" => "RSA public key 4096 bit"],
|
"pubkey" => ["type" => "text", "comment" => "RSA public key 4096 bit"],
|
||||||
"prvkey" => ["type" => "text", "comment" => "RSA private key 4096 bit"],
|
"prvkey" => ["type" => "text", "comment" => "RSA private key 4096 bit"],
|
||||||
"batch" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
"batch" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
"request" => ["type" => "varchar(255)", "comment" => ""],
|
|
||||||
"notify" => ["type" => "varchar(255)", "comment" => ""],
|
"notify" => ["type" => "varchar(255)", "comment" => ""],
|
||||||
"poll" => ["type" => "varchar(255)", "comment" => ""],
|
"poll" => ["type" => "varchar(255)", "comment" => ""],
|
||||||
"confirm" => ["type" => "varchar(255)", "comment" => ""],
|
|
||||||
"subscribe" => ["type" => "varchar(255)", "comment" => ""],
|
"subscribe" => ["type" => "varchar(255)", "comment" => ""],
|
||||||
"poco" => ["type" => "varchar(255)", "comment" => ""],
|
|
||||||
"aes_allow" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
|
||||||
"ret-aes" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
|
||||||
"usehub" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
|
||||||
"subhub" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
|
||||||
"hub-verify" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
|
||||||
"last-update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last try to update the contact info"],
|
"last-update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last try to update the contact info"],
|
||||||
"success_update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last successful contact update"],
|
"success_update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last successful contact update"],
|
||||||
"failure_update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last failed update"],
|
"failure_update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last failed update"],
|
||||||
"failed" => ["type" => "boolean", "comment" => "Connection failed"],
|
"failed" => ["type" => "boolean", "comment" => "Connection failed"],
|
||||||
"name-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
|
||||||
"uri-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
|
||||||
"avatar-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
|
||||||
"term-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
"term-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||||
"last-item" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "date of the last post"],
|
"last-item" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "date of the last post"],
|
||||||
"last-discovery" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "date of the last follower discovery"],
|
"last-discovery" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "date of the last follower discovery"],
|
||||||
"priority" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => ""],
|
|
||||||
"blocked" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => "Node-wide block status"],
|
"blocked" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => "Node-wide block status"],
|
||||||
"block_reason" => ["type" => "text", "comment" => "Node-wide block reason"],
|
"block_reason" => ["type" => "text", "comment" => "Node-wide block reason"],
|
||||||
"readonly" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "posts of the contact are readonly"],
|
"readonly" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "posts of the contact are readonly"],
|
||||||
"writable" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
"contact-type" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => "Person, organisation, news, community, relay"],
|
||||||
"forum" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "contact is a forum"],
|
"manually-approve" => ["type" => "boolean", "comment" => "Contact requests have to be approved manually"],
|
||||||
"prv" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "contact is a private group"],
|
|
||||||
"contact-type" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""],
|
|
||||||
"manually-approve" => ["type" => "boolean", "comment" => ""],
|
|
||||||
"hidden" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
|
||||||
"archive" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
"archive" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
"pending" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => ""],
|
|
||||||
"deleted" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Contact has been deleted"],
|
|
||||||
"rating" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""],
|
|
||||||
"unsearchable" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Contact prefers to not be searchable"],
|
"unsearchable" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Contact prefers to not be searchable"],
|
||||||
"sensitive" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Contact posts sensitive content"],
|
"sensitive" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Contact posts sensitive content"],
|
||||||
"baseurl" => ["type" => "varchar(255)", "default" => "", "comment" => "baseurl of the contact"],
|
"baseurl" => ["type" => "varchar(255)", "default" => "", "comment" => "baseurl of the contact"],
|
||||||
"gsid" => ["type" => "int unsigned", "foreign" => ["gserver" => "id", "on delete" => "restrict"], "comment" => "Global Server ID"],
|
"gsid" => ["type" => "int unsigned", "foreign" => ["gserver" => "id", "on delete" => "restrict"], "comment" => "Global Server ID"],
|
||||||
"reason" => ["type" => "text", "comment" => ""],
|
|
||||||
"closeness" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "99", "comment" => "Deprecated"],
|
|
||||||
"info" => ["type" => "mediumtext", "comment" => ""],
|
|
||||||
"profile-id" => ["type" => "int unsigned", "comment" => "Deprecated"],
|
|
||||||
"bdyear" => ["type" => "varchar(4)", "not null" => "1", "default" => "", "comment" => ""],
|
|
||||||
"bd" => ["type" => "date", "not null" => "1", "default" => DBA::NULL_DATE, "comment" => ""],
|
"bd" => ["type" => "date", "not null" => "1", "default" => DBA::NULL_DATE, "comment" => ""],
|
||||||
|
// User depending fields
|
||||||
|
"reason" => ["type" => "text", "comment" => ""],
|
||||||
|
"self" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "1 if the contact is the user him/her self"],
|
||||||
|
"remote_self" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
|
"rel" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "The kind of the relation between the user and the contact"],
|
||||||
|
"protocol" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => "Protocol of the contact"],
|
||||||
|
"subhub" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
|
"hub-verify" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
|
"rating" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => "Automatically detected feed poll frequency"],
|
||||||
|
"priority" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "Feed poll priority"],
|
||||||
|
"attag" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
|
"hidden" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
|
"pending" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => "Contact request is pending"],
|
||||||
|
"deleted" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Contact has been deleted"],
|
||||||
|
"info" => ["type" => "mediumtext", "comment" => ""],
|
||||||
"notify_new_posts" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
"notify_new_posts" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
"fetch_further_information" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => ""],
|
"fetch_further_information" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
"ffi_keyword_denylist" => ["type" => "text", "comment" => ""],
|
"ffi_keyword_denylist" => ["type" => "text", "comment" => ""],
|
||||||
|
// Deprecated, but still in use
|
||||||
|
"photo" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo of the contact"],
|
||||||
|
"thumb" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo (thumb size)"],
|
||||||
|
"micro" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo (micro size)"],
|
||||||
|
"name-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||||
|
"uri-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||||
|
"avatar-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||||
|
"request" => ["type" => "varchar(255)", "comment" => ""],
|
||||||
|
"confirm" => ["type" => "varchar(255)", "comment" => ""],
|
||||||
|
"poco" => ["type" => "varchar(255)", "comment" => ""],
|
||||||
|
"writable" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
|
"forum" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "contact is a forum. Deprecated, use 'contact-type' = 'community' and 'manually-approve' = false instead"],
|
||||||
|
"prv" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "contact is a private group. Deprecated, use 'contact-type' = 'community' and 'manually-approve' = true instead"],
|
||||||
|
"bdyear" => ["type" => "varchar(4)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
|
// Deprecated fields that aren't in use anymore
|
||||||
|
"site-pubkey" => ["type" => "text", "comment" => "Deprecated"],
|
||||||
|
"gender" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => "Deprecated"],
|
||||||
|
"duplex" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
||||||
|
"issued-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Deprecated"],
|
||||||
|
"dfrn-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Deprecated"],
|
||||||
|
"aes_allow" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
||||||
|
"ret-aes" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
||||||
|
"usehub" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Deprecated"],
|
||||||
|
"closeness" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "99", "comment" => "Deprecated"],
|
||||||
|
"profile-id" => ["type" => "int unsigned", "comment" => "Deprecated"],
|
||||||
],
|
],
|
||||||
"indexes" => [
|
"indexes" => [
|
||||||
"PRIMARY" => ["id"],
|
"PRIMARY" => ["id"],
|
||||||
|
|
|
@ -930,7 +930,7 @@
|
||||||
"network" => ["contact", "network"],
|
"network" => ["contact", "network"],
|
||||||
"protocol" => ["ucontact", "protocol"],
|
"protocol" => ["ucontact", "protocol"],
|
||||||
"location" => ["contact", "location"],
|
"location" => ["contact", "location"],
|
||||||
"attag" => ["contact", "attag"],
|
"attag" => ["ucontact", "attag"],
|
||||||
"pubkey" => ["contact", "pubkey"],
|
"pubkey" => ["contact", "pubkey"],
|
||||||
"prvkey" => ["contact", "prvkey"],
|
"prvkey" => ["contact", "prvkey"],
|
||||||
"subscribe" => ["contact", "subscribe"],
|
"subscribe" => ["contact", "subscribe"],
|
||||||
|
@ -946,7 +946,7 @@
|
||||||
"sensitive" => ["contact", "sensitive"],
|
"sensitive" => ["contact", "sensitive"],
|
||||||
"baseurl" => ["contact", "baseurl"],
|
"baseurl" => ["contact", "baseurl"],
|
||||||
"gsid" => ["contact", "gsid"],
|
"gsid" => ["contact", "gsid"],
|
||||||
"info" => ["contact", "info"],
|
"info" => ["ucontact", "info"],
|
||||||
"bdyear" => ["contact", "bdyear"],
|
"bdyear" => ["contact", "bdyear"],
|
||||||
"bd" => ["contact", "bd"],
|
"bd" => ["contact", "bd"],
|
||||||
"poco" => ["contact", "poco"],
|
"poco" => ["contact", "poco"],
|
||||||
|
|
Loading…
Reference in a new issue