mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:50:12 +00:00
We can now store incoming questions
This commit is contained in:
parent
8dbd1d0e52
commit
834844573b
10 changed files with 318 additions and 6 deletions
30
doc/database/db_post-question-option.md
Normal file
30
doc/database/db_post-question-option.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
Table post-question-option
|
||||
===========
|
||||
|
||||
Question option
|
||||
|
||||
Fields
|
||||
------
|
||||
|
||||
| Field | Description | Type | Null | Key | Default | Extra |
|
||||
| ------- | --------------------------------------------------------- | ------------ | ---- | --- | ------- | ----- |
|
||||
| id | Id of the question | int unsigned | NO | PRI | NULL | |
|
||||
| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | NO | PRI | NULL | |
|
||||
| name | Name of the option | varchar(255) | YES | | NULL | |
|
||||
| replies | Number of replies for this question option | int unsigned | YES | | NULL | |
|
||||
|
||||
Indexes
|
||||
------------
|
||||
|
||||
| Name | Fields |
|
||||
| ------- | ---------- |
|
||||
| PRIMARY | uri-id, id |
|
||||
|
||||
Foreign Keys
|
||||
------------
|
||||
|
||||
| Field | Target Table | Target Field |
|
||||
|-------|--------------|--------------|
|
||||
| uri-id | [item-uri](help/database/db_item-uri) | id |
|
||||
|
||||
Return to [database documentation](help/database)
|
32
doc/database/db_post-question.md
Normal file
32
doc/database/db_post-question.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
Table post-question
|
||||
===========
|
||||
|
||||
Question
|
||||
|
||||
Fields
|
||||
------
|
||||
|
||||
| Field | Description | Type | Null | Key | Default | Extra |
|
||||
| -------- | --------------------------------------------------------- | ------------ | ---- | --- | ------------------- | -------------- |
|
||||
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
|
||||
| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | NO | | NULL | |
|
||||
| multiple | Multiple choice | boolean | NO | | 0 | |
|
||||
| voters | Number of voters for this question | int unsigned | YES | | NULL | |
|
||||
| end-time | Question end time | datetime | YES | | 0001-01-01 00:00:00 | |
|
||||
|
||||
Indexes
|
||||
------------
|
||||
|
||||
| Name | Fields |
|
||||
| ------- | -------------- |
|
||||
| PRIMARY | id |
|
||||
| uri-id | UNIQUE, uri-id |
|
||||
|
||||
Foreign Keys
|
||||
------------
|
||||
|
||||
| Field | Target Table | Target Field |
|
||||
|-------|--------------|--------------|
|
||||
| uri-id | [item-uri](help/database/db_item-uri) | id |
|
||||
|
||||
Return to [database documentation](help/database)
|
Loading…
Add table
Add a link
Reference in a new issue