SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [MessageInbox](
	[InboxID] [int] IDENTITY(1,1) NOT NULL,
	[ReceiveUserID] [int] NULL,
	[MessageID] [int] NULL,
	[ReceiveStatus] [int] NULL,
	[ReadTime] [datetime] NULL CONSTRAINT [DF_ReceiveOnlineMessage_ReadTime]  DEFAULT (getdate()),
 CONSTRAINT [PK_ReceiveOnlineMessage] PRIMARY KEY CLUSTERED 
(
	[InboxID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET IDENTITY_INSERT [MessageInbox] ON 

INSERT [MessageInbox] ([InboxID], [ReceiveUserID], [MessageID], [ReceiveStatus], [ReadTime]) VALUES (5, 6, 1, 1, CAST(N'2014-11-29 21:56:10.377' AS DateTime))
SET IDENTITY_INSERT [MessageInbox] OFF
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收表自增长id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MessageInbox', @level2type=N'COLUMN',@level2name=N'InboxID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收用户编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MessageInbox', @level2type=N'COLUMN',@level2name=N'ReceiveUserID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'消息编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MessageInbox', @level2type=N'COLUMN',@level2name=N'MessageID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收状态0未读(暂备用),1已读,-1删除,2收藏' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MessageInbox', @level2type=N'COLUMN',@level2name=N'ReceiveStatus'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'阅读时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MessageInbox', @level2type=N'COLUMN',@level2name=N'ReadTime'
GO
