序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Group | int | 4 | 0 | 是 | |||||
3 | ParentID | int | 4 | 0 | 是 | 父结构ID | ||||
4 | Name | nvarchar | 255 | 0 | 是 | 结构名称 | ||||
5 | AddTime | datetime | 8 | 3 | 是 | 添加时间 | ||||
6 | Opens | int | 4 | 0 | 是 | |||||
7 | Status | int | 4 | 0 | 是 | |||||
8 | UserID | int | 4 | 0 | 是 | |||||
9 | Remind | nvarchar | 255 | 0 | 是 | |||||
10 | UserIDS | varchar | 8000 | 0 | 是 | 部门成员IDS | ||||
11 | ManagerIDS | varchar | 8000 | 0 | 是 | 部门管理员IDS |
邮件订阅分类表
GO
CREATE TABLE [dbo].[ZL_Structure](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Group] [int] NULL,
[ParentID] [int] NULL,
[Name] [nvarchar](255) NULL,
[AddTime] [datetime] NULL,
[Opens] [int] NULL,
[Status] [int] NULL,
[UserID] [int] NULL,
[Remind] [nvarchar](255) NULL,
[UserIDS] [varchar](8000) NULL,
[ManagerIDS] [varchar](8000) NULL,
CONSTRAINT [PK_ZL_Structure] 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_Structure
drop table ZL_Structure
TRUNCATE table ZL_Structure