]> git.mxchange.org Git - friendica.git/blob - doc/database/db_attach.md
Updates database structure documentation
[friendica.git] / doc / database / db_attach.md
1 Table attach
2 ===========
3 file attachments
4
5 | Field | Description | Type | Null | Key | Default | Extra |
6 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
7 | id | generated index | int unsigned | YES | PRI |  | auto_increment |    
8 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
9 | hash | hash | varchar(64) | YES |  |  |  |    
10 | filename | filename of original | varchar(255) | YES |  |  |  |    
11 | filetype | mimetype | varchar(64) | YES |  |  |  |    
12 | filesize | size in bytes | int unsigned | YES |  | 0 |  |    
13 | data | file data | longblob | YES |  |  |  |    
14 | created | creation time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
15 | edited | last edit time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
16 | allow_cid | Access Control - list of allowed contact.id '<19><78> | mediumtext | NO |  |  |  |    
17 | allow_gid | Access Control - list of allowed groups | mediumtext | NO |  |  |  |    
18 | deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  |  |  |    
19 | deny_gid | Access Control - list of denied groups | mediumtext | NO |  |  |  |    
20 | backend-class | Storage backend class | tinytext | NO |  |  |  |    
21 | backend-ref | Storage backend data reference | text | NO |  |  |  |    
22
23 Return to [database documentation](help/database)