表名:ZL_QrCode












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2ImageUrlnvarchar2550    二维码路径
3CodeTypenvarchar500    二维码类型
4CodeLevelnvarchar500    纠错等级 分为
5CodeVersionint40    版本
6CodeContentsnvarchar2550    内容
7UserNamenvarchar500    用于存该二维码别名
8Typeint40   0类型:0文本、1名片
9CreateTimedatetime83    创建时间
10AppIDint40    生成url的标识
11Urlsnvarchar5000    生成url的标识,各平台顺序:Android,iPhone,iPad,WPhone,PC

简要说明:

二维码表

GO
CREATE TABLE [dbo].[ZL_QrCode](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ImageUrl] [nvarchar](255) NULL,
[CodeType] [nvarchar](50) NULL,
[CodeLevel] [nvarchar](50) NULL,
[CodeVersion] [int] NULL,
[CodeContents] [nvarchar](255) NULL,
[UserName] [nvarchar](50) NULL,
[Type] [int] NULL,
[CreateTime] [datetime] NULL,
[AppID] [int] NULL,
[Urls] [nvarchar](500) NULL,
CONSTRAINT [PK_ZL_QrCode] 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]

GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'纠错等级 分为' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_QrCode', @level2type=N'COLUMN',@level2name=N'CodeLevel'
GO

ALTER TABLE [dbo].[ZL_QrCode] ADD  DEFAULT ((0)) FOR [Type]

--注意:将清空全表数据

detele from ZL_QrCode

--注意:将删除整个表

drop table ZL_QrCode

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_QrCode