Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-101
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sachith Fernando
2020-101
Commits
d75422d6
Commit
d75422d6
authored
Sep 22, 2020
by
SohanDanushka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db changes and lecturer audio
parent
d82242ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
154 additions
and
1 deletion
+154
-1
FirstApp/migrations/0001_initial.py
FirstApp/migrations/0001_initial.py
+154
-1
No files found.
FirstApp/migrations/0001_initial.py
View file @
d75422d6
# Generated by Django
3.0.3 on 2020-03-04 11:15
# Generated by Django
2.2.11 on 2020-09-07 07:56
import
FirstApp.MongoModels
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
djongo.models.fields
class
Migration
(
migrations
.
Migration
):
...
...
@@ -11,6 +14,44 @@ class Migration(migrations.Migration):
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Faculty'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'faculty_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
],
),
migrations
.
CreateModel
(
name
=
'Lecture'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'date'
,
models
.
DateTimeField
(
auto_created
=
True
,
default
=
None
)),
(
'lecture_id'
,
models
.
CharField
(
max_length
=
10
)),
],
),
migrations
.
CreateModel
(
name
=
'Lecturer'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'lecturer_id'
,
models
.
CharField
(
max_length
=
7
)),
(
'fname'
,
models
.
TextField
()),
(
'lname'
,
models
.
TextField
()),
(
'email'
,
models
.
EmailField
(
max_length
=
254
)),
(
'telephone'
,
models
.
CharField
(
max_length
=
10
)),
(
'faculty'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Faculty'
)),
],
),
migrations
.
CreateModel
(
name
=
'RegisterUser'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'firstName'
,
models
.
CharField
(
max_length
=
20
)),
(
'lastName'
,
models
.
CharField
(
max_length
=
30
)),
(
'email'
,
models
.
CharField
(
max_length
=
30
)),
(
'password'
,
models
.
CharField
(
max_length
=
50
)),
],
),
migrations
.
CreateModel
(
name
=
'Teachers'
,
fields
=
[
...
...
@@ -20,4 +61,116 @@ class Migration(migrations.Migration):
(
'age'
,
models
.
IntegerField
()),
],
),
migrations
.
CreateModel
(
name
=
'Video'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
(
'path'
,
models
.
CharField
(
max_length
=
100
)),
(
'duration'
,
models
.
CharField
(
max_length
=
100
)),
(
'hours'
,
models
.
IntegerField
()),
(
'minutes'
,
models
.
IntegerField
()),
(
'seconds'
,
models
.
IntegerField
()),
],
),
migrations
.
CreateModel
(
name
=
'VideoMeta'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'fps'
,
models
.
IntegerField
()),
(
'frame_count'
,
models
.
IntegerField
()),
(
'happy_count'
,
models
.
IntegerField
()),
(
'sad_count'
,
models
.
IntegerField
()),
(
'angry_count'
,
models
.
IntegerField
()),
(
'neutral_count'
,
models
.
IntegerField
()),
(
'surprise_count'
,
models
.
IntegerField
()),
(
'happy_perct'
,
models
.
IntegerField
()),
(
'sad_perct'
,
models
.
IntegerField
()),
(
'angry_perct'
,
models
.
IntegerField
()),
(
'neutral_perct'
,
models
.
IntegerField
()),
(
'surprise_perct'
,
models
.
IntegerField
()),
],
),
migrations
.
CreateModel
(
name
=
'Subject'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'subject_code'
,
models
.
TextField
()),
(
'name'
,
models
.
TextField
()),
(
'year'
,
models
.
IntegerField
()),
(
'faculty'
,
models
.
ForeignKey
(
default
=
{},
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Faculty'
)),
],
),
migrations
.
CreateModel
(
name
=
'LectureVideo'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'lecture_video_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'date'
,
models
.
DateField
()),
(
'video_name'
,
models
.
CharField
(
max_length
=
50
)),
(
'video_length'
,
models
.
DurationField
()),
(
'lecturer'
,
models
.
ForeignKey
(
default
=
0
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Lecturer'
)),
(
'subject'
,
models
.
ForeignKey
(
default
=
0
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Subject'
)),
],
),
migrations
.
CreateModel
(
name
=
'LecturerSubject'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'lec_subject_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'lecturer_id'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Lecturer'
)),
(
'subjects'
,
models
.
ManyToManyField
(
to
=
'FirstApp.Subject'
)),
],
),
migrations
.
CreateModel
(
name
=
'LecturerCredentials'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'password'
,
models
.
CharField
(
max_length
=
15
)),
(
'username'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Lecturer'
)),
],
),
migrations
.
CreateModel
(
name
=
'LecturePoseEstimation'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'lecture_pose_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'lecture_video_id'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.LectureVideo'
)),
],
),
migrations
.
CreateModel
(
name
=
'LectureEmotionReport'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'lecture_emotion_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'happy_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'sad_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'angry_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'disgust_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'surprise_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'neutral_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'lecture_video_id'
,
models
.
ForeignKey
(
default
=
0
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.LectureVideo'
)),
],
),
migrations
.
CreateModel
(
name
=
'LectureActivity'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'lecture_activity_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'talking_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'listening_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'writing_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'phone_perct'
,
models
.
DecimalField
(
decimal_places
=
1
,
default
=
0.0
,
max_digits
=
3
)),
(
'lecture_video_id'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.LectureVideo'
)),
],
),
migrations
.
CreateModel
(
name
=
'FacultyTimetable'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'timetable_id'
,
models
.
CharField
(
max_length
=
10
)),
(
'timetable'
,
djongo
.
models
.
fields
.
ArrayField
(
model_container
=
FirstApp
.
MongoModels
.
DateTimeTable
)),
(
'faculty'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'FirstApp.Faculty'
)),
],
),
]
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