权限验证

CREATE TABLE [dbo].[tb_group] (
	[group_id] [int] NOT NULL ,
	[group_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[group_info] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]

CREATE TABLE [dbo].[tb_groupBoard] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[groupBoard_memberId] [int] NULL ,
	[groupBoard_boardId] [smallint] NULL 
) ON [PRIMARY]

CREATE TABLE [dbo].[tb_groupCategory] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[groupCategory_memberId] [int] NULL ,
	[groupCategory_categoryId] [smallint] NULL 
) ON [PRIMARY]


CREATE TABLE [dbo].[tb_member] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[group_id] [int] NULL ,
	[member_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_pswd] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_sex] [varchar] (2) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_age] [smallint] NULL ,
	[member_oicq] [varchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_icon] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_sign] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_status] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[member_regTime] [datetime] NULL ,
	[member_logonTime] [datetime] NULL ,
	[member_postNum] [int] NULL ,
	[member_experience] [int] NULL ,
	[member_charm] [int] NULL 
) ON [PRIMARY]

你可能感兴趣的:(sql)