Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Security
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Security
design security for web project management system
mark smith
Ranch Hand
Posts: 264
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi
i try to design the security of an application. It's a project management software.
An user can be assigner on many project.
An user can have many role.
an role can have many permission.
An user can have different role in function of a project.
An role can have different permission in function of a project.
An schema i thought
create table project ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, name varchar(50) not null, primary key(id) ) ; create table account ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, username varchar(50) not null, primary key(id) ) ; create table role ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, name varchar(50) not null, primary key(id) ) ; create table permission ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, name varchar(50) not null, primary key(id) ) ; create table permissionscheme ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, name varchar(50) not null, primary key(id) ) ; create table schemepermissions ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, permissionscheme_id int not null, permission_id int not null, role_id int not null, foreign key (permissionscheme_id) references permissionscheme (id), foreign key (permission_id) references permission (id), foreign key (role_id) references role (id), primary key(id) ) ; create table account_role_project ( id int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) not null, project_id int not null, account_id int not null, role_id int not null, foreign key (project_id) references project (id), foreign key (account_id) references account (id), foreign key (role_id) references role (id), primary key(id) ) ;
idea comment, tip...?
thanks
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Identity function in HSQLDB
Need help with DuplicateKeyException
Hibernate is driving me crazy !
Not able to get a Session Factory Object
hibernat creating the tables without cascade
More...