序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | UserID | int | 4 | 0 | 是 | 用户ID | ||||
3 | IP | nvarchar | 200 | 0 | 是 | 签到IP地址 | ||||
4 | IPLocation | nvarchar | 300 | 0 | 是 | 签到IP地址 | ||||
5 | ZType | int | 4 | 0 | 是 | 类别,0:签到,1:签退 | ||||
6 | State | int | 4 | 0 | 否 | 状态,0:正常,1:迟到,2:早退 | ||||
7 | CDate | datetime | 8 | 3 | 是 | 签到/签退时间 | ||||
8 | Remind | nvarchar | 200 | 0 | 是 | 备注 |
能力考勤表
Go
CREATE TABLE [dbo].[ZL_Plat_Sign](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[IP] [nvarchar](200) NULL,
[IPLocation] [nvarchar](300) NULL,
[ZType] [int] NULL,
[State] [int] NOT NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](200) NULL,
CONSTRAINT [PK_ZL_SignIn] 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]
detele from ZL_Plat_Sign
drop table ZL_Plat_Sign
TRUNCATE table ZL_Plat_Sign