]> git.mxchange.org Git - friendica.git/blob - doc/database/db_photo.md
3834e72a49125079953053e5dcfd5f0659095548
[friendica.git] / doc / database / db_photo.md
1 Table photo
2 ===========
3 photo storage
4
5 | Field | Description | Type | Null | Key | Default | Extra |
6 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
7 | id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
8 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
9 | contact-id | contact.id | int unsigned | YES |  | 0 |  |    
10 | guid | A unique identifier for this photo | char(16) | YES |  |  |  |    
11 | resource-id |  | char(32) | YES |  |  |  |    
12 | hash | hash value of the photo | char(32) | NO |  | NULL |  |    
13 | created | creation date | datetime | YES |  | 0001-01-01 00:00:00 |  |    
14 | edited | last edited date | datetime | YES |  | 0001-01-01 00:00:00 |  |    
15 | title |  | varchar(255) | YES |  |  |  |    
16 | desc |  | text | NO |  | NULL |  |    
17 | album | The name of the album to which the photo belongs | varchar(255) | YES |  |  |  |    
18 | filename |  | varchar(255) | YES |  |  |  |    
19 | type |  | varchar(30) | YES |  | image/jpeg |  |    
20 | height |  | smallint unsigned | YES |  | 0 |  |    
21 | width |  | smallint unsigned | YES |  | 0 |  |    
22 | datasize |  | int unsigned | YES |  | 0 |  |    
23 | data |  | mediumblob | YES |  | NULL |  |    
24 | scale |  | tinyint unsigned | YES |  | 0 |  |    
25 | profile |  | boolean | YES |  | 0 |  |    
26 | allow_cid | Access Control - list of allowed contact.id '<19><78>' | mediumtext | NO |  | NULL |  |    
27 | allow_gid | Access Control - list of allowed groups | mediumtext | NO |  | NULL |  |    
28 | deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  | NULL |  |    
29 | deny_gid | Access Control - list of denied groups | mediumtext | NO |  | NULL |  |    
30 | accessible | Make photo publicly accessible, ignoring permissions | boolean | YES |  | 0 |  |    
31 | backend-class | Storage backend class | tinytext | NO |  | NULL |  |    
32 | backend-ref | Storage backend data reference | text | NO |  | NULL |  |    
33 | updated |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
34
35 Return to [database documentation](help/database)