SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Member](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[classid] [int] NOT NULL CONSTRAINT [DF_Member_classid]  DEFAULT ((0)),
	[membername] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_member_username]  DEFAULT (''),
	[password] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_member_password]  DEFAULT (''),
	[picpath] [nvarchar](80) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_picture]  DEFAULT (''),
	[nicheng] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_member_nicheng]  DEFAULT (''),
	[realname] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_member_realname]  DEFAULT (''),
	[sex] [bit] NOT NULL,
	[age] [int] NOT NULL CONSTRAINT [DF_Member_member_age]  DEFAULT ((0)),
	[email] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_member_email]  DEFAULT (''),
	[phone] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_phone]  DEFAULT (''),
	[online] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_online]  DEFAULT (''),
	[seat1] [int] NOT NULL CONSTRAINT [DF_Member_member_seat]  DEFAULT ((0)),
	[seat2] [int] NOT NULL CONSTRAINT [DF_Member_seat2]  DEFAULT ((0)),
	[seat3] [int] NOT NULL CONSTRAINT [DF_Member_seat3]  DEFAULT ((0)),
	[gold] [int] NOT NULL CONSTRAINT [DF_Member_gold]  DEFAULT ((0)),
	[explain] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_member_explain]  DEFAULT (''),
	[isaudit] [bit] NOT NULL,
	[addtime] [datetime] NOT NULL,
	[lastlogintime] [datetime] NOT NULL,
	[lastloginip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Member_lastloginip]  DEFAULT (''),
	[loginnumber] [int] NOT NULL CONSTRAINT [DF_Member_member_loginnumber]  DEFAULT ((0)),
	[expand1] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand2] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand3] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand4] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand5] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand6] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand7] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand8] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand9] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand10] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand11] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand12] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand13] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand14] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand15] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand16] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand17] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand18] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand19] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
	[expand20] [nvarchar](800) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [PK_Member] 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'Member', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(所属会员类别,默认为0)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'classid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(用户名)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'membername'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(密码)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'password'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(头像)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'picpath'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(昵称称呼)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'nicheng'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(真实姓名)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'realname'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(性别,0男1女)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'sex'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(年龄)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'age'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(EMAIL)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'email'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(联系电话)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'phone'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(在线联系工具)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'online'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(所在地,省)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'seat1'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(所在地,市)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'seat2'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(所在地,区)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'seat3'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(金币)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'gold'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(个人介绍说明)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'explain'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(是否审核,1为已审核)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'isaudit'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @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'Member', @level2type=N'COLUMN', @level2name=N'lastlogintime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(最后一次登陆IP)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'lastloginip'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(登陆次数)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'loginnumber'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand1'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand2'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand3'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand4'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand5'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand6'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand7'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand8'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand9'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand10'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand11'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand12'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand13'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand14'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand15'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand16'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand17'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand18'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand19'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员模型-记录表(扩展字段)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Member', @level2type=N'COLUMN', @level2name=N'expand20'
