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 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 BookingTable() : base("BOOKING") { AddColumn(new BigIntColumn("booking_id", ColumnNullable.False)); AddColumn(new NullStringColumn("title")); AddColumn(ColumnUtils.CreateUserIdAndNameColumns()); AddColumn(ColumnUtils.CreateDeptIdAndNameColumns()); AddColumn(new Ct7NotesColumn("search_criteria")); AddColumn(ColumnUtils.CreateEventCatIdAndNameColumns()); AddColumn(new NullStringColumn("requester_name")); AddColumn(new NullStringColumn("requester_email")); AddColumn(new BitColumn("add_me")); AddColumn(new IntColumn("status", ColumnNullable.False)); AddColumn(new Ct7NotesColumn()); AddColumn(new Ct7NotesColumn("audit_notes")); AddColumn(new IntColumn("sb_status")); AddColumn(ColumnUtils.CreateLookupColumns()); AddColumn(ColumnUtils.CreateAuditColumnsWithNames()); AddColumn(ColumnUtils.CreateOriginColumns()); AddPrimaryKey("booking_id"); }