序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | medalid | int | 4 | 0 | 是 | 勋章种类1:网友勋章;2:版主勋章;3:系统勋章 | ||||
3 | UserID | int | 4 | 0 | 是 | 用户ID | ||||
4 | BarID | int | 4 | 0 | 是 | 所属贴子编号 | ||||
5 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
6 | Sender | int | 4 | 0 | 是 | 勋章颁发者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
TRUNCATE table ZL_Guest_Medals