更新脚本:增加RoleApp数据表,为角色对应用程序授权功能做准备 #IRY3N

This commit is contained in:
Argo-Surface 2019-02-24 16:14:09 +08:00
parent 38b13349b0
commit 5427e0b763
4 changed files with 44 additions and 0 deletions

View File

@ -136,6 +136,32 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'角色ID' , @l
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'部门ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RoleGroup', @level2type=N'COLUMN',@level2name=N'GroupID'
GO
/****** Object: Table [dbo].[RoleApp] Script Date: 02/24/2019 14:56:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[RoleApp](
[ID] [int] IDENTITY(1,1) NOT NULL,
[AppID] [varchar](50) NOT NULL,
[RoleID] [int] NOT NULL,
CONSTRAINT [PK_RoleApp] 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
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[Notifications] Script Date: 11/12/2016 15:49:11 ******/
SET ANSI_NULLS ON
GO

View File

@ -39,6 +39,12 @@ CREATE TABLE RoleGroup(
GroupID INT NOT NULL
);
CREATE TABLE RoleApp(
ID INTEGER PRIMARY KEY Auto_increment,
AppID VARCHAR (500) NOT NULL,
RoleID INT NOT NULL
);
CREATE TABLE Notifications(
ID INTEGER PRIMARY KEY Auto_increment,
Category VARCHAR (50) NOT NULL,

View File

@ -39,6 +39,12 @@ CREATE TABLE RoleGroup(
GroupID INT NOT NULL
);
CREATE TABLE RoleApp(
ID SERIAL PRIMARY KEY,
AppID VARCHAR (50) NOT NULL,
RoleID INT NOT NULL
);
CREATE TABLE Notifications(
ID SERIAL PRIMARY KEY,
Category VARCHAR (50) NOT NULL,

View File

@ -39,6 +39,12 @@ CREATE TABLE RoleGroup(
[GroupID] INT NOT NULL
);
CREATE TABLE RoleApp(
[ID] INTEGER PRIMARY KEY,
[AppID] VARCHAR (50) NOT NULL,
[RoleID] INT NOT NULL
);
CREATE TABLE Notifications(
[ID] INTEGER PRIMARY KEY,
[Category] VARCHAR (50) NOT NULL,