SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[User_Memorandum](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Administrator_Memorandum_adminmemorandum_content]  DEFAULT (''),
	[userid] [int] NOT NULL CONSTRAINT [DF_Administrator_Memorandum_adminmemorandum_userid]  DEFAULT (0),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
 CONSTRAINT [PK_Administrator_Memorandum] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员备忘录(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Memorandum', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员备忘录(备忘录内容)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Memorandum', @level2type=N'COLUMN', @level2name=N'content'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员备忘录(所属管理员ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Memorandum', @level2type=N'COLUMN', @level2name=N'userid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员备忘录(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Memorandum', @level2type=N'COLUMN', @level2name=N'addtime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管理员备忘录(最后更新时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'User_Memorandum', @level2type=N'COLUMN', @level2name=N'updatetime'
