Tables [dbo].[PSRegisterShift]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:58:42 AM Thursday, March 21, 2019
Last Modified1:13:58 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_PSRegisterShift: ShiftIDShiftIDint4
False
Foreign Keys FK_PSRegisterShift_RegisterID_PSRegisters: [dbo].[PSRegisters].RegisterIDRegisterIDint4
False
Foreign Keys FK_PSRegisterShift_CashierID_PREmployees: [dbo].[PREmployees].CashierIDCashierIDint4
False
BeginningCashmoney8
False
Openeddatetime8
False
(getdate())
Closeddatetime8
True
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_PSRegisterShift: ShiftIDPK_PSRegisterShiftShiftID
True
80
NameColumns
FK_PSRegisterShift_CashierID_PREmployeesCashierID->[dbo].[PREmployees].[EmployeeID]
FK_PSRegisterShift_RegisterID_PSRegistersRegisterID->[dbo].[PSRegisters].[RegisterID]
CREATE TABLE [dbo].[PSRegisterShift]
(
[ShiftID] [int] NOT NULL,
[RegisterID] [int] NOT NULL,
[CashierID] [int] NOT NULL,
[BeginningCash] [money] NOT NULL,
[Opened] [datetime] NOT NULL CONSTRAINT [DF_PSRegisterShift_Opened] DEFAULT (getdate()),
[Closed] [datetime] NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_PSRegisterShift_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_PSRegisterShift_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PSRegisterShift] ADD CONSTRAINT [PK_PSRegisterShift] PRIMARY KEY CLUSTERED  ([ShiftID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PSRegisterShift] ADD CONSTRAINT [FK_PSRegisterShift_CashierID_PREmployees] FOREIGN KEY ([CashierID]) REFERENCES [dbo].[PREmployees] ([EmployeeID])
GO
ALTER TABLE [dbo].[PSRegisterShift] ADD CONSTRAINT [FK_PSRegisterShift_RegisterID_PSRegisters] FOREIGN KEY ([RegisterID]) REFERENCES [dbo].[PSRegisters] ([RegisterID])
GO