表名:ZL_Structure












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Groupint40     
3ParentIDint40    父结构ID
4Namenvarchar2550    结构名称
5AddTimedatetime83    添加时间
6Opensint40     
7Statusint40     
8UserIDint40     
9Remindnvarchar2550     
10UserIDSvarchar80000    部门成员IDS
11ManagerIDSvarchar80000    部门管理员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

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_Structure