HOW TO : CORE
database schema
The classes that perform the authentication and authorization process need a database
like this:
users (users)
- user_id: user unique id
- user_name: the username
- user_password: the password
- user_desc: user description
usergroup (groups)
- group_id: group unique id
- group_name: group name
- group_desc: group description
user_group (relation users/usergroup)
- user_id: user unique id
- group_id: group unique id
service (services/actions)
- service_id: service/action unique id
- service_name: service unique name
- service_desc: service description
- service_free: bypass authorization if 1
user_service (relation users/service)
- user_id: user unique id
- service_id: service/action unique id
service_group (relation service/usergroup)
- service_id: service/action unique id
- group_id: group unique id
language (languages)
- language_id: language unique id
- language: language description
- code: language code
menu (menus and relation menu/service)
- menu_id: menu unique id
- menu_name: menu name
- menu_order: menu order
- menu_parent: the menu_id of the parent menu
- service_id: service/action unique id
- visible: set menu visibility
- stick: menu always visible
menu_locale (relation menu/language)
- menu_id: menu unique id
- language_id: language unique id
- menu_name: the menu name relative of the language
- menu_desc: the menu description relative of the language
This is the sql script for creating the database under MySQL for schema jfw and user jfw: