5 | Field | Description | Type | Null | Key | Default | Extra |
6 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
7 | id | sequential ID | int unsigned | YES | PRI | | 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 | | | |
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 | | | |
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 | | | |
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 | | | |
27 | allow_gid | Access Control - list of allowed groups | mediumtext | NO | | | |
28 | deny_cid | Access Control - list of denied contact.id | mediumtext | NO | | | |
29 | deny_gid | Access Control - list of denied groups | mediumtext | NO | | | |
30 | accessible | Make photo publicly accessible, ignoring permissions | boolean | YES | | 0 | |
31 | backend-class | Storage backend class | tinytext | NO | | | |
32 | backend-ref | Storage backend data reference | text | NO | | | |
33 | updated | | datetime | YES | | 0001-01-01 00:00:00 | |
35 Return to [database documentation](help/database)