iqs-services-attendance-node
Version:
Attendance microservice in Node.js
19 lines (14 loc) • 698 B
text/typescript
import { ObjectSchema } from 'pip-services3-commons-node';
import { ArraySchema } from 'pip-services3-commons-node';
import { TypeCode } from 'pip-services3-commons-node';
import { ObjectAttendanceV1Schema } from './ObjectAttendanceV1Schema';
export class AttendancesV1Schema extends ObjectSchema {
public constructor() {
super();
this.withOptionalProperty('id', TypeCode.String);
this.withRequiredProperty('org_id', TypeCode.String);
this.withRequiredProperty('start_time', TypeCode.DateTime);
this.withRequiredProperty('end_time', TypeCode.DateTime);
this.withOptionalProperty('objects', new ArraySchema(ObjectAttendanceV1Schema));
}
}