Version 25 (modified by 9 hours ago) ( diff ) | ,
---|
Релациско мапирање
Ознаки
- Примарните клучеви се означени со задебелени и подвлечени букви
- Задолжителните атрибути се означени со задебелени букви
- Надворешните клучеви се означени со # проследено од името на референцираната табела, обвиени со (). - attb#(tabela)
- Наследување се означува со наследениот примарен клуч обвиен со "*" само при првото појавување на табелата, потоа во следни појавувања се референцира примарниот клуч од основната класа.
Табели
- users (id, username, email, name, is_activate, password, description, registered_at, sex)
- moderator (id#(users))
- developer (id#(users))
- project_manager (id#(users))
- thread (id, content, created_at, user_id#(users))
- project_thread (id#(thread), title, repo_url)
- embeddable_thread (id#(thread))
- topic_thread (id#(embeddable_thread), title, parent_id#(project_thread))
- topic_guidelines (id, topic_id#(topic_thread), description)
- discussion_thread (id#(embeddable_thread), parent_id#(embeddable_thread))
- likes (user_id#(users), thread_id#(thread))
- topic_threads_moderators (thread_id#(topic_thread), user_id#(moderator), started_at)
- tag (name, creator_id#(users))
- tag_threads (thread_id#(thread), tag_name#(tag))
- blacklisted_user (id, user_id#(users), moderator_id#(moderator), topic_id#(topic_thread), start_date, end_date, reason)
- developer_associated_with_project (project_id#(project_thread), developer_id#(developer), started_at, ended_at)
- permissions (name)
- project_role (id, name, project_id#(project_thread), override_type)
- role_permissions (permission_name#(permissions), role_id#(project_role))
- role_permissions_overrides (role_id#(project_role), permission_name#(permissions), channel_id#(channel))
- users_project_roles (user_id#(developer), role_id#(project_role))
- submission (id, created_at, description, status, created_by#(users))
- project_request (id#(submission), project_id#(thread))
- feedback (submission_id#(submission), description, submission_type, created_at, created_by#(users))
- report (id#(submission), thread_id#(topic_thread), for_user_id#(users))
- channel (id, name, project_id#(project_thread), description, project_resource_id#(project_resource), developer_id#(developer))
- messages (channel_name#(channel), project_id#(project_thread), sent_at, sent_by#(developer), content)
DDL скрипта за бришење и креирање на табелите
DML скрипта за полнење на табелите за податоци
Релационен дијаграм
Attachments (18)
- DDL_diagram.png (252.8 KB ) - added by 9 months ago.
- buildboard-ddl.sql (7.1 KB ) - added by 9 months ago.
- buildboard-ddl.2.sql (10.0 KB ) - added by 9 months ago.
- test-data.sql (3.1 KB ) - added by 9 months ago.
- ddl-diagram.png (251.5 KB ) - added by 8 months ago.
- V2__add_test_data.sql (3.7 KB ) - added by 8 months ago.
- ddl-diagram-v2.png (238.5 KB ) - added by 8 months ago.
- V1__init_ddl.sql (15.5 KB ) - added by 8 months ago.
- V1__init_ddl.2.sql (15.0 KB ) - added by 8 months ago.
- V1__init_ddl.3.sql (15.9 KB ) - added by 7 months ago.
- V2__add_test_data.2.sql (7.5 KB ) - added by 7 months ago.
- ddl-diagram-v3.png (51.1 KB ) - added by 37 hours ago.
- V1__init_ddl.4.sql (8.4 KB ) - added by 37 hours ago.
- V5__add_test_data.sql (7.5 KB ) - added by 37 hours ago.
- V1__init_ddl.5.sql (8.3 KB ) - added by 9 hours ago.
- V5__add_test_data.2.sql (7.5 KB ) - added by 9 hours ago.
- ddl_diagram_v3.1.2.png (82.5 KB ) - added by 9 hours ago.
- ddl_diagram_v3.1.png (82.5 KB ) - added by 9 hours ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.