序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | stateCode | int | 4 | 0 | 是 | 否 | 状态码 | |||
2 | stateName | varchar | 50 | 0 | 否 | 状态名称 | ||||
3 | stateType | varchar | 50 | 0 | 否 | 状态类型(是否是系统的) |
审计表
GO
CREATE TABLE [dbo].[ZL_AuditingState](
[stateCode] [int] NOT NULL,
[stateName] [varchar](50) NOT NULL,
[stateType] [varchar](50) NOT NULL,
CONSTRAINT [PK_ZL_AuditingState] PRIMARY KEY CLUSTERED
([stateCode] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态名称' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AuditingState', @level2type=N'COLUMN', @level2name=N'stateName'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态类型(是否是系统的)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AuditingState', @level2type=N'COLUMN', @level2name=N'stateType'
GO
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( -3,N'草稿',N'自定义')
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( -1,N'退稿',N'自定义')
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( 11,N'初审',N'自定义')
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( 12,N'二审',N'自定义')
detele from ZL_AuditingState
drop table ZL_AuditingState
TRUNCATE table ZL_AuditingState