序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Name | nvarchar | 100 | 0 | 是 | 模板类型名称 | ||||
3 | Pid | int | 4 | 0 | 是 | 父节点ID | ||||
4 | OrderID | int | 4 | 0 | 是 | 排序编号 | ||||
5 | AdminID | int | 4 | 0 | 是 | 管理员ID | ||||
6 | depth | int | 4 | 0 | 是 | 深度,插入时计算 | ||||
7 | Remind | nvarchar | 500 | 0 | 是 | 备注信息 | ||||
8 | CDate | datetime | 8 | 3 | 是 |
场景模板类型表
GO
CREATE TABLE [dbo].[ZL_Design_TlpClass](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](100) NULL,
[Pid] [int] NULL,
[OrderID] [int] NULL,
[AdminID] [int] NULL,
[depth] [int] NULL,
[Remind] [nvarchar](500) NULL,
[CDate] [datetime] NULL,
CONSTRAINT [PK_ZL_Design_TlpClass] 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_Design_TlpClass
drop table ZL_Design_TlpClass
TRUNCATE table ZL_Design_TlpClass