序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Department | nvarchar | 255 | 0 | 是 | 所属部门 | ||||
3 | BeginTime | nvarchar | 100 | 0 | 是 | 开始时间 | ||||
4 | EndTime | nvarchar | 100 | 0 | 是 | 结束时间 | ||||
5 | UserName | nvarchar | 50 | 0 | 是 | 用户名 | ||||
6 | Comment | nvarchar | 500 | 0 | 是 | 备注 | ||||
7 | BeginStatus | int | 4 | 0 | 是 | 0 | 0为未签到 1为签到 | |||
8 | EndStatus | int | 4 | 0 | 是 | 0 | 0为未签退 1为签退 |
OA考勤表
GO
CREATE TABLE [dbo].[ZL_MisAttendance](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Department] [nvarchar](255) NULL,
[BeginTime] [nvarchar](100) NULL,
[EndTime] [nvarchar](100) NULL,
[UserName] [nvarchar](50) NULL,
[Comment] [nvarchar](500) NULL,
[BeginStatus] [int] NULL CONSTRAINT [DF_ZL_MisAttendance_BeginStatus] DEFAULT ((0)),
[EndStatus] [int] NULL CONSTRAINT [DF_ZL_MisAttendance_EndStatus] DEFAULT ((0)),
CONSTRAINT [PK_ZL_MisAttendance] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0为未签到 1为签到' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_MisAttendance', @level2type=N'COLUMN',@level2name=N'BeginStatus'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0为未签退 1为签退' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_MisAttendance', @level2type=N'COLUMN',@level2name=N'EndStatus'
detele from ZL_MisAttendance
drop table ZL_MisAttendance
TRUNCATE table ZL_MisAttendance