序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Name | nvarchar | 100 | 0 | 是 | 微信用户名 | ||||
3 | OpenID | nvarchar | 200 | 0 | 是 | 微信用户id | ||||
4 | Sex | int | 4 | 0 | 是 | 性别 | ||||
5 | City | nvarchar | 50 | 0 | 是 | 城市 | ||||
6 | Province | nvarchar | 50 | 0 | 是 | 省份 | ||||
7 | Country | nvarchar | 50 | 0 | 是 | 国家 | ||||
8 | HeadImgUrl | nvarchar | 500 | 0 | 是 | 用户头像url | ||||
9 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
10 | Groupid | int | 4 | 0 | 是 | 分组id | ||||
11 | AppId | int | 4 | 0 | 是 | 公众号id |
微信用户表
GO
CREATE TABLE [dbo].[ZL_WX_User](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](100) NULL,
[OpenID] [nvarchar](200) NULL,
[Sex] [int] NULL,
[City] [nvarchar](50) NULL,
[Province] [nvarchar](50) NULL,
[Country] [nvarchar](50) NULL,
[HeadImgUrl] [nvarchar](500) NULL,
[CDate] [datetime] NULL,
[Groupid] [int] NULL,
[AppId] [int] NULL,
CONSTRAINT [PK_ZL_WX_User] PRIMARY KEY CLUSTERED
([ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
detele from ZL_WX_User
drop table ZL_WX_User
TRUNCATE table ZL_WX_User