序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | NotifyTitle | nvarchar | 200 | 0 | 是 | 通知标题 | ||||
3 | NotifyContext | nvarchar | 1000 | 0 | 是 | 通知内容 | ||||
4 | AddTime | datetime | 8 | 3 | 是 | 添加时间 | ||||
5 | RoomID | int | 4 | 0 | 是 | 班级ID | ||||
6 | UserID | int | 4 | 0 | 是 | 添加用户ID |
班级通知表
GO
CREATE TABLE [dbo].[ZL_RoomNotify](
[ID] [int] IDENTITY(1,1) NOT NULL,
[NotifyTitle] [nvarchar](200) NULL,
[NotifyContext] [nvarchar](1000) NULL,
[AddTime] [datetime] NULL,
[RoomID] [int] NULL,
[UserID] [int] NULL,
CONSTRAINT [PK_RoomNotify] PRIMARY KEY CLUSTERED
(
[ID] 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_RoomNotify', @level2type=N'COLUMN', @level2name=N'NotifyTitle'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'通知内容' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @level2type=N'COLUMN', @level2name=N'NotifyContext'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @level2type=N'COLUMN', @level2name=N'AddTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'班级ID' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @level2type=N'COLUMN', @level2name=N'RoomID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加用户ID' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @level2type=N'COLUMN', @level2name=N'UserID'
detele from ZL_RoomNotify
drop table ZL_RoomNotify
TRUNCATE table ZL_RoomNotify