ZMM_SR_SHIFTS_B
Table to store Shift related data.
Details
-
Schema: FUSION
-
Object owner: RCS
-
Object type: TABLE
-
Tablespace: APPS_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
ZMM_SR_SHIFTS_B_PK |
SHIFT_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
SHIFT_ID | NUMBER | 18 | Yes | Primary Key attribute to uniquely identify a row. | |
START_TIME_MS_NUM | NUMBER | 18 | Start Time for shift detail in milliseconds from midnight. | ||
END_TIME_MS_NUM | NUMBER | 18 | End Time for shift in milliseconds from mignight | ||
DURATION_MS_NUM | NUMBER | 18 | Duration for shift detail in milliseconds from start time. | ||
DURATION_UOM_CODE | VARCHAR2 | 30 | Unit of measure in which duration is entered for a Shift. | ||
SHIFT_TYPE_CODE | VARCHAR2 | 30 | Yes | A Shift can have following types - Time, Duration and Elapsed. Time shifts are used to track fixed work timings. They have a specific start time and end time. Duration shifts are used when the resource does not have a fixed start time and end time but rather works for certain number of hours, is off for some hours, again works for some number of hours and so on. Elapsed shifts are used when a resource can work a set number of hours anytime during the day. | |
SHORT_TXT | VARCHAR2 | 3 | Short Code can be used to display a Shift when visualizing a Schedule. Since this is a three letter code it takes less space than the Name. | ||
CATEGORY_CODE | VARCHAR2 | 30 | Category can be used to group Shifts. | ||
GLOBAL_FLAG | VARCHAR2 | 1 | Can be set to true for shifts that are stand alone and can be included in one or more patterns. This is for future use if we also introduce shifts that are local to a pattern. Currently all shifts are global. | ||
AVAILABILITY_CODE | VARCHAR2 | 30 | Period Type defines whether the resource is working (Work Period) or not working (Off Period) during the Shift. | ||
SHIFT_DTL_TYPE_CODE | VARCHAR2 | 30 | Shift Slices divide the Shift into further intervals. Slice types can be Punch (having fixed start and end times) and Flex (having flexible start and end times). | ||
DELETED_FLAG | VARCHAR2 | 1 | This column is to support soft delete in future. Possible values 'Y' or 'N'. | ||
ATTRIBUTE1 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE2 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE3 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE4 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE5 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE6 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE7 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE8 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE9 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE10 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE11 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE12 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE13 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE14 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE15 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE16 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE17 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE18 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE19 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE20 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE21 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE22 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE23 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE24 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE25 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE26 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE27 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE28 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE29 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE30 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | ||
ATTRIBUTE_CATEGORY | VARCHAR2 | 30 | Descriptive Flexfield: structure definition of the user descriptive flexfield. | ||
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
zmm_sr_shifts_tl | zmm_sr_shifts_b | SHIFT_ID |
zmm_sr_shift_dtls | zmm_sr_shifts_b | SHIFT_ID |
zmm_sr_schedule_dtls | zmm_sr_shifts_b | SHIFT_ID |
zmm_sr_pattern_dtls | zmm_sr_shifts_b | CHILD_SHIFT_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
ZMM_SR_SHIFTS_B_N1 | Non Unique | Default | CATEGORY_CODE |
ZMM_SR_SHIFTS_B_PK | Unique | Default | SHIFT_ID |