public StaffTable() : base("STAFF") { AddColumn(new BigIntColumn("staff_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(new StringColumn("title", ColumnConstants.StrLenStaffStudentTitle)); AddColumn(new Ct7SexColumn()); AddColumn(ColumnUtils.CreateAddressColumns()); AddColumn(ColumnUtils.CreateRoomIdAndNameColumns()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(new IntColumn("allowance_week")); AddColumn(new IntColumn("allowance_total")); AddColumn(ColumnUtils.CreateTargetColumns()); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(ColumnUtils.CreateStdTelColumns()); AddColumn(new Ct7EmailColumn()); AddColumn(new Ct7WebColumn()); AddColumn(new StringColumn("profile", ColumnConstants.StrLenStd)); AddColumn(ColumnUtils.CreateSpecialNeedsColumns()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("staff_id"); AddUniqueNameIndex(); AddNameIndex(); }
public EventInstanceTable() : base("EVENT_INSTANCE") { AddColumn(new NotNullStringColumn("event_instance_id", ColumnConstants.StrLenEventInstance)); AddColumn(new BigIntColumn("event_id", ColumnNullable.False)); AddColumn(new BigIntColumn("timetable_id", ColumnNullable.False)); AddColumn(new BigIntColumn("timetable_event_id", ColumnNullable.False)); AddColumn(new IntColumn("timetable_week", ColumnNullable.False)); AddColumn(new IntColumn("timetable_occurrence", ColumnNullable.False)); AddColumn(new StringColumn("event_name", ColumnConstants.StrLenStd)); AddColumn(new IntColumn("day_of_week", ColumnNullable.False)); AddColumn(new DateTimeColumn("start_time", ColumnNullable.False)); AddColumn(new DateTimeColumn("end_time", ColumnNullable.False)); AddColumn(new IntColumn("break_mins")); AddColumn(ColumnUtils.CreateSpanIdAndNameColumns()); AddColumn(ColumnUtils.CreateEventCatIdAndNameColumns()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(new IntColumn("capacity_req")); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(new BitColumn("global_event")); AddColumn(new BitColumn("protected")); AddColumn(new BitColumn("suspended")); AddColumn(new IntColumn("grouping_id")); AddColumn(new BitColumn("registers_req", ColumnNullable.True)); AddColumn(new BitColumn(ColumnConstants.RegistersReqResolvedColumnName)); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("event_instance_id"); }
public StudentTable() : base("STUDENT") { AddColumn(new BigIntColumn("student_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(new StringColumn("title", ColumnConstants.StrLenStaffStudentTitle)); AddColumn(new Ct7SexColumn()); AddColumn(new DateTimeColumn("dob")); AddColumn(ColumnUtils.CreateAddressColumns()); AddColumn(ColumnUtils.CreateRoomIdAndNameColumns()); AddColumn(new Ct7AcademicYearColumn()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateStaffIdAndNameColumns()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(new StringColumn("card_num", ColumnConstants.StrLenStd)); AddColumn(ColumnUtils.CreateTargetColumns()); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(ColumnUtils.CreateStdTelColumns()); AddColumn(new Ct7EmailColumn()); AddColumn(new Ct7WebColumn()); AddColumn(new StringColumn("profile", ColumnConstants.StrLenStd)); AddColumn(new StringColumn("photo_file", ColumnConstants.StrLenPhotoFile)); AddColumn(ColumnUtils.CreateSpecialNeedsColumns()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("student_id"); AddUniqueNameIndex(); AddNameIndex(); }
public RoomTable() : base("ROOM") { AddColumn(new BigIntColumn("room_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateSiteIdAndNameColumns()); AddColumn(new FloatColumn("area")); AddColumn(ColumnUtils.CreateStaff1And2ColumnsWithNames()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(new IntColumn("default_capacity")); AddColumn(new FloatColumn("charge")); AddColumn(new Ct7TelephoneColumn()); AddColumn(new Ct7WebColumn()); AddColumn(ColumnUtils.CreateSpecialNeedsColumns()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("room_id"); AddUniqueNameIndex(); AddNameIndex(); }
public ExamTable() : base("EXAM") { AddColumn(new BigIntColumn("exam_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(new BigIntColumn("session_id", ColumnNullable.False)); AddColumn(new NotNullStringColumn("session_name")); AddColumn(new IntColumn("duration")); AddColumn(ColumnUtils.CreateEventCatIdAndNameColumns()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(new IntColumn("capacity_req")); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(new BitColumn("protected")); AddColumn(new BitColumn("suspended")); AddColumn(new IntColumn("grouping_id")); AddColumn(new BitColumn("registers_req", ColumnNullable.True)); AddColumn(new Ct7BoolColumn(ColumnConstants.RegistersReqResolvedColumnName)); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("exam_id"); }
public GroupTable() : base("GROUP") { AddColumn(new BigIntColumn("group_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(new Ct7AcademicYearColumn()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateStaff1And2ColumnsWithNames()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(ColumnUtils.CreateTargetColumns()); AddColumn(new IntColumn("target_size")); AddColumn(new IntColumn("group_size")); AddColumn(new IntColumn("additional")); AddColumn(new IntColumn("split_id")); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(new Ct7EmailColumn()); AddColumn(new Ct7WebColumn()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("group_id"); AddUniqueNameIndex(); AddNameIndex(); }
public UserTable() : base("TIMETABLE_USER") { AddColumn(new BigIntColumn("user_id", ColumnNullable.False)); AddColumn(new NotNullStringColumn("name")); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateStaffIdAndNameColumns()); AddColumn(ColumnUtils.CreateStudentIdAndNameColumns()); AddColumn(new BitColumn("active")); AddColumn(new Ct7EmailColumn()); AddColumn(new BitColumn("booking_admin")); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddPrimaryKey("user_id"); }
public DeptTable() : base("DEPT") { AddColumn(new BigIntColumn("dept_id", ColumnNullable.False)); AddColumn(new NotNullStringColumn("name")); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(new IntColumn("colour")); AddColumn(ColumnUtils.CreateStaff1And2ColumnsWithNames()); AddColumn(new Ct7TelephoneColumn()); AddColumn(new Ct7EmailColumn()); AddColumn(new Ct7WebColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("dept_id"); AddNameIndex(); }
public TeamTable() : base("TEAM") { AddColumn(new BigIntColumn("team_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateStaff1And2ColumnsWithNames()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(new Ct7WebColumn()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("team_id"); AddUniqueNameIndex(); AddNameIndex(); }
public EquipTable() : base("EQUIP") { AddColumn(new BigIntColumn("equip_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateStaff1And2ColumnsWithNames()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(new IntColumn("booking_interval")); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(new FloatColumn("charge")); AddColumn(new Ct7WebColumn()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("equip_id"); AddUniqueNameIndex(); AddNameIndex(); }
public ModuleTable() : base("MODULE") { AddColumn(new BigIntColumn("module_id", ColumnNullable.False)); AddColumn(new Ct7UniqueNameColumn()); AddColumn(new Ct7NameColumn()); AddColumn(new Ct7AcademicYearColumn()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(ColumnUtils.CreateFacultyIdAndNameColumns()); AddColumn(ColumnUtils.CreateStaff1And2ColumnsWithNames()); AddColumn(ColumnUtils.CreateCustomColumns()); AddColumn(ColumnUtils.CreateTargetColumns()); AddColumn(ColumnUtils.CreateSchedulableColumn()); AddColumn(new Ct7WebColumn()); AddColumn(new Ct7NotesColumn()); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("module_id"); AddUniqueNameIndex(); AddNameIndex(); }