2015-12-28 01:50:25 +00:00
|
|
|
Table attach
|
2021-06-13 20:33:50 +00:00
|
|
|
===========
|
2021-06-14 06:10:11 +00:00
|
|
|
|
2021-06-13 20:33:50 +00:00
|
|
|
file attachments
|
2015-12-28 01:50:25 +00:00
|
|
|
|
2021-06-14 08:53:37 +00:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2021-06-14 06:10:11 +00:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| ------------- | ----------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
|
|
|
|
| id | generated index | int unsigned | NO | PRI | NULL | auto_increment |
|
|
|
|
| uid | Owner User id | mediumint unsigned | NO | | 0 | |
|
|
|
|
| hash | hash | varchar(64) | NO | | | |
|
|
|
|
| filename | filename of original | varchar(255) | NO | | | |
|
|
|
|
| filetype | mimetype | varchar(64) | NO | | | |
|
|
|
|
| filesize | size in bytes | int unsigned | NO | | 0 | |
|
|
|
|
| data | file data | longblob | NO | | NULL | |
|
|
|
|
| created | creation time | datetime | NO | | 0001-01-01 00:00:00 | |
|
|
|
|
| edited | last edit time | datetime | NO | | 0001-01-01 00:00:00 | |
|
2021-06-14 12:38:42 +00:00
|
|
|
| allow_cid | Access Control - list of allowed contact.id '<19><78> | mediumtext | YES | | NULL | |
|
2023-05-13 23:46:35 +00:00
|
|
|
| allow_gid | Access Control - list of allowed circles | mediumtext | YES | | NULL | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| deny_cid | Access Control - list of denied contact.id | mediumtext | YES | | NULL | |
|
2023-05-13 23:46:35 +00:00
|
|
|
| deny_gid | Access Control - list of denied circles | mediumtext | YES | | NULL | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| backend-class | Storage backend class | tinytext | YES | | NULL | |
|
|
|
|
| backend-ref | Storage backend data reference | text | YES | | NULL | |
|
2015-12-28 01:50:25 +00:00
|
|
|
|
2021-06-14 08:53:37 +00:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 12:15:10 +00:00
|
|
|
| Name | Fields |
|
|
|
|
| ------- | ------ |
|
|
|
|
| PRIMARY | id |
|
|
|
|
| uid | uid |
|
2021-06-14 08:53:37 +00:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| uid | [user](help/database/db_user) | uid |
|
|
|
|
|
2015-12-28 01:50:25 +00:00
|
|
|
Return to [database documentation](help/database)
|