2015-12-28 01:50:25 +00:00
|
|
|
Table photo
|
|
|
|
===========
|
2021-06-13 20:33:50 +00:00
|
|
|
photo storage
|
2015-12-28 01:50:25 +00:00
|
|
|
|
2021-06-13 20:33:50 +00:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
|
2021-06-14 05:08:01 +00:00
|
|
|
| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |
|
2021-06-13 20:33:50 +00:00
|
|
|
| uid | Owner User id | mediumint unsigned | YES | | 0 | |
|
|
|
|
| contact-id | contact.id | int unsigned | YES | | 0 | |
|
|
|
|
| guid | A unique identifier for this photo | char(16) | YES | | | |
|
|
|
|
| resource-id | | char(32) | YES | | | |
|
2021-06-14 05:08:01 +00:00
|
|
|
| hash | hash value of the photo | char(32) | NO | | NULL | |
|
2021-06-13 20:33:50 +00:00
|
|
|
| created | creation date | datetime | YES | | 0001-01-01 00:00:00 | |
|
|
|
|
| edited | last edited date | datetime | YES | | 0001-01-01 00:00:00 | |
|
|
|
|
| title | | varchar(255) | YES | | | |
|
2021-06-14 05:08:01 +00:00
|
|
|
| desc | | text | NO | | NULL | |
|
2021-06-13 20:33:50 +00:00
|
|
|
| album | The name of the album to which the photo belongs | varchar(255) | YES | | | |
|
|
|
|
| filename | | varchar(255) | YES | | | |
|
|
|
|
| type | | varchar(30) | YES | | image/jpeg | |
|
|
|
|
| height | | smallint unsigned | YES | | 0 | |
|
|
|
|
| width | | smallint unsigned | YES | | 0 | |
|
|
|
|
| datasize | | int unsigned | YES | | 0 | |
|
2021-06-14 05:08:01 +00:00
|
|
|
| data | | mediumblob | YES | | NULL | |
|
2021-06-13 20:33:50 +00:00
|
|
|
| scale | | tinyint unsigned | YES | | 0 | |
|
|
|
|
| profile | | boolean | YES | | 0 | |
|
2021-06-14 05:08:01 +00:00
|
|
|
| allow_cid | Access Control - list of allowed contact.id '<19><78>' | mediumtext | NO | | NULL | |
|
|
|
|
| allow_gid | Access Control - list of allowed groups | mediumtext | NO | | NULL | |
|
|
|
|
| deny_cid | Access Control - list of denied contact.id | mediumtext | NO | | NULL | |
|
|
|
|
| deny_gid | Access Control - list of denied groups | mediumtext | NO | | NULL | |
|
2021-06-13 20:33:50 +00:00
|
|
|
| accessible | Make photo publicly accessible, ignoring permissions | boolean | YES | | 0 | |
|
2021-06-14 05:08:01 +00:00
|
|
|
| backend-class | Storage backend class | tinytext | NO | | NULL | |
|
|
|
|
| backend-ref | Storage backend data reference | text | NO | | NULL | |
|
2021-06-13 20:33:50 +00:00
|
|
|
| updated | | datetime | YES | | 0001-01-01 00:00:00 | |
|
2015-12-28 01:50:25 +00:00
|
|
|
|
|
|
|
Return to [database documentation](help/database)
|