表名:ZL_Guest_Medals












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2medalidint40    勋章种类1:网友勋章;2:版主勋章;3:系统勋章
3UserIDint40    用户ID
4BarIDint40    所属贴子编号
5CDatedatetime83    创建时间
6Senderint40    勋章颁发者id ,-1:系统管理员

简要说明:

贴吧勋章表

GO
CREATE TABLE [dbo].[ZL_Guest_Medals](
[ID] [int] IDENTITY(1,1) NOT NULL,
[medalid] [int] NULL,
[UserID] [int] NULL,
[BarID] [int] NULL,
[CDate] [datetime] NULL,
[Sender] [int] NULL,
CONSTRAINT [PK_ZL_Guest_Medals] 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_Guest_Medals

--注意:将删除整个表

drop table ZL_Guest_Medals

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

TRUNCATE table ZL_Guest_Medals