序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | GroupID | int | 4 | 0 | 是 | 是 | 否 | 会员组ID | ||
2 | GroupName | nvarchar | 50 | 0 | 否 | 会员组名 | ||||
3 | OtherName | nvarchar | 255 | 0 | 是 | 别名 | ||||
4 | Description | nvarchar | 255 | 0 | 是 | 会员组说明 | ||||
5 | RegSelect | bit | 1 | 0 | 是 | 注册时是否可选 | ||||
6 | IsDefault | bit | 1 | 0 | 是 | 是否默认会员组 | ||||
7 | CCountPerDay | int | 4 | 0 | 是 | 每天可发布内容数量 | ||||
8 | FavCount | int | 4 | 0 | 是 | 收藏夹设置 | ||||
9 | ConsumeType | int | 4 | 0 | 是 | 计费方式 | ||||
10 | UpGradeMoney | money | 8 | 4 | 是 | 余额升级价格 | ||||
11 | UpSIcon | money | 8 | 4 | 是 | 银币升级价格 | ||||
12 | UpPoint | money | 8 | 4 | 是 | 积分升级价格 | ||||
13 | CompanyGroup | int | 4 | 0 | 是 | 是否为企业用组:0-否 1-是 | ||||
14 | VIPNum | int | 4 | 0 | 是 | /默认VIP 积分 | ||||
15 | VIPGroup | int | 4 | 0 | 是 | 是否为VIP用组:0-否 1-是 | ||||
16 | RebateRate | float | 8 | 0 | 是 | 返利比率 | ||||
17 | Credit | int | 4 | 0 | 是 | 信誉值 | ||||
18 | Enroll | varchar | 500 | 0 | 是 | 招生人员 | ||||
19 | ParentGroupID | int | 4 | 0 | 是 | 父会员组ID | ||||
20 | SignImg | nvarchar | 200 | 0 | 是 | 用于OA,部门签章信息 | ||||
21 | OrderID | int | 4 | 0 | 是 |
会员组表
GO
CREATE TABLE [dbo].[ZL_Group](
[GroupID] [int] IDENTITY(1,1) NOT NULL,
[GroupName] [nvarchar](50) NOT NULL,
[OtherName] [nvarchar](255) NULL,
[Description] [nvarchar](255) NULL,
[RegSelect] [bit] NULL,
[IsDefault] [bit] NULL,
[CCountPerDay] [int] NULL,
[FavCount] [int] NULL,
[ConsumeType] [int] NULL,
[UpGradeMoney] [money] NULL,
[UpSIcon] [money] NULL,
[UpPoint] [money] NULL,
[CompanyGroup] [int] NULL,
[VIPNum] [int] NULL,
[VIPGroup] [int] NULL,
[RebateRate] [float] NULL,
[Credit] [int] NULL,
[Enroll] [varchar](500) NULL,
[ParentGroupID] [int] NULL,
[SignImg] [nvarchar](200) NULL,
[OrderID] [int] NULL,
CONSTRAINT [PK_ZL_UserGroup] PRIMARY KEY CLUSTERED
([GroupID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
SET IDENTITY_INSERT [ZL_Group] ON
INSERT [ZL_Group] ( [GroupID] , [GroupName] , [OtherName] , [Description] , [OrderID] , [RegSelect] , [IsDefault] , [CCountPerDay] , [FavCount] , [ConsumeType] , [UpGradeMoney] , [CompanyGroup] , [VIPNum] , [VIPGroup] , [RebateRate] ,[ParentGroupID] ) VALUES ( 1 , '普通会员' , '普通' , '普通会员注册' , 1 , 1 , 1 , 0 , 0 , 0 , .0000 , 0 , 0 , 0 , 0.69999998807907104 , 0 )
INSERT [ZL_Group] ( [GroupID] , [GroupName] , [OtherName] , [Description] , [OrderID] , [RegSelect] , [IsDefault] , [CCountPerDay] , [FavCount] , [ConsumeType] , [UpGradeMoney] , [CompanyGroup] , [VIPNum] , [VIPGroup] , [RebateRate] ,[ParentGroupID] ) VALUES ( 2 , '企业会员' , '企业' , '企业用户注册' , 2 , 1 , 0 , 0 , 0 , 0 , .0000 , 1 , 0 , 0 , 0.80000001192092896 , 0 )
SET IDENTITY_INSERT [ZL_Group] OFF
detele from ZL_Group
drop table ZL_Group
TRUNCATE table ZL_Group