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