Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
4b1431bf
Commit
4b1431bf
authored
Dec 18, 2013
by
Mark Hoeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edits to analytics changes
wiki and user_id_map tables finalized
parent
7e88ecc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
45 deletions
+77
-45
docs/data/source/internal_data_formats/sql_schema.rst
+28
-9
docs/data/source/internal_data_formats/wiki_data.rst
+49
-36
No files found.
docs/data/source/internal_data_formats/sql_schema.rst
View file @
4b1431bf
...
...
@@ -378,21 +378,40 @@ A row in this table represents a student's enrollment for a particular course ru
==========================
A row in this table maps a student's real user ID to an anonymous ID generated to obfuscate the student's identity.
`id`
.. list-table::
:widths: 15 15 15 15
:header-rows: 1
* - Field
- Type
- Null
- Key
* - hashid
- int(11)
- NO
- PRI
* - id
- int(11)
- NO
-
* - username
- varchar(30)
- NO
-
`hash_id`
----
Primary ke
y.
The user ID generated to obfuscate the student's identit
y.
`user_id`
---------
Student's ID in `auth_user.id`
The student's ID in `auth_user.id`.
`anonymous_user_id`
-----------
The user ID generated to obfuscate the student's identity.
`course_id`
`username`
-----------
The
ID of the course run the student is enrolled in.
The
student's username in `auth_user.id`.
...
...
docs/data/source/internal_data_formats/wiki_data.rst
View file @
4b1431bf
...
...
@@ -9,7 +9,7 @@ EdX currently uses an external application called Django Wiki for Wiki functiona
****************
article
wiki_
article
****************
.. list-table::
...
...
@@ -24,10 +24,10 @@ article
- int(11)
- NO
- PRI
* - current_revision
* - current_revision
_id
- int(11)
- NO
-
-
UNI
* - created
- datetime
- NO
...
...
@@ -38,22 +38,26 @@ article
-
* - owner_id
- int(11)
- NO
- Foreign
- YES
- MUL
* - group_id
- int(11)
- YES
- MUL
* - group_read
-
boolean
-
tinyint(1)
- NO
-
* - group_write
-
boolean
-
tinyint(1)
- NO
-
* - other_read
-
boolean
-
tinyint(1)
- NO
-
* - other_write
-
boolean
-
tinyint(1)
- NO
-
...
...
@@ -64,7 +68,7 @@ article
`current_revision_id`
----------
----------
--------------------
The ID of the revision that is displayed for this article.
...
...
@@ -75,18 +79,23 @@ article
`modified`
------------
The date the article
was
last modified.
The date the article
properties were
last modified.
`owner_id`
------------
The user ID of the article owner.
The owner of the article, usually the creator. The owner always has both read and write access.
`group_id`
------------
As in a UNIX file system, permissions can be given to a user according to group membership.
Groups are handled through the Django auth system.
`group_read`
------------
Whether the group has read access to the article.
`group_write`
------------
------------
--
Whether the group has write access to the article.
`other_read`
...
...
@@ -94,16 +103,16 @@ article
Whether others have read access to the article.
`other_write`
------------
------------
----------
Whether others have read access to the article.
****************
article_
revision
****************
****************
******
wiki_article
revision
****************
******
.. list-table::
:widths: 15 15 15 15
...
...
@@ -122,19 +131,23 @@ article_revision
- NO
-
* - user_message
-
varchar(255)
-
YES
-
longtext
-
NO
-
* - automatic_log
-
varchar(255)
-
YES
-
longtext
-
NO
-
* - ip_address
-
??
-
char(15)
- YES
-
* - user_id
_modified
* - user_id
- int(11)
- YES
- MUL
* - modified
- datetime
- NO
-
* - created
...
...
@@ -143,20 +156,20 @@ article_revision
-
* - previous_revision_id
- int(11)
-
NO
-
Foreign
-
YES
-
MUL
* - deleted
-
boolean
-
tinyint(1)
- NO
-
* - locked
-
boolean
-
tinyint(1)
- NO
-
* - article_id
- int(11)
- NO
-
Foreign
-
MUL
* - content
- longtext
- NO
...
...
@@ -174,20 +187,20 @@ article_revision
`revision_number`
----------
----------
----------
The ID of the revision.
`user_message`
------------
------------
----------
The message the user added when saving the revision.
`automatic_log`
------------
???
------------
----------
`user`
`user
_id
`
------------
The ID of the user who made the revision.
...
...
@@ -202,8 +215,8 @@ article_revision
The date the article was created.
`previous_revision`
------------
`previous_revision
_id
`
------------
----------
The ID of the revision previous to this one.
`deleted`
...
...
@@ -216,7 +229,7 @@ article_revision
Whether or not the revision is locked.
`article_id`
----------
----------
----------
The ID of the revision that is displayed for this article.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment