| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { Model, Collection } from 'js-abstract-model'
- import { User } from 'src/models/User'
- class Session extends Model {
- constructor (data) {
- super(data, [
- { key: 'id' },
- { key: 'creator' },
- {
- key: 'creator_info',
- relatedModel: User
- },
- { key: 'classroom' },
- { key: 'title' },
- { key: 'syllabus' },
- { key: 'description' },
- { key: 'beginning_time' },
- { key: 'ending_time' },
- { key: 'questions' },
- { key: 'questions_info' },
- { key: 'creation_time' },
- { key: 'last_modification_time' },
- { key: 'is_defined_syllabus' },
- { key: 'current_user_attendance_sheet' },
- { key: 'assignment_description' },
- {
- key: 'session_attendance_sheets',
- defalut: []
- }
- ])
- }
- }
- class SessionList extends Collection {
- model () {
- return Session
- }
- }
- export { Session, SessionList }
|