0% found this document useful (0 votes)
97 views

Schema

This document proposes a schema for organizing files and folders for users in a DGT space. The schema includes tables for user folders, folder names and descriptions, random folder names, folder sharing permissions and groups, and folder files. The user folders table would store the folder ID, node ID, user ID and sharing permissions. Additional tables would link to this to store the folder name, description, tags, random number, shared groups, and associated files.

Uploaded by

api-19462948
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Schema

This document proposes a schema for organizing files and folders for users in a DGT space. The schema includes tables for user folders, folder names and descriptions, random folder names, folder sharing permissions and groups, and folder files. The user folders table would store the folder ID, node ID, user ID and sharing permissions. Additional tables would link to this to store the folder name, description, tags, random number, shared groups, and associated files.

Uploaded by

api-19462948
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Proposed Schema For DGT Space

------------------------------------------------------------------------------------------------------------------
-

User_Folder

Field Type description

Fid int(11) auto increment field(folderid)

Nid int(11) Node id of the file

user_id int(11) userid of the file(owner)

Share_perm int(60) 0,1,2(0-public,1-private,2-groups)

User_folder_name

Field Type description

id int(11) auto increment field(folderid)

Fid int(11) reference from user_folder table

Folder_Name varchar(60) Name of the folder

Folder_desc varchar(60) Description of the folder

Folder_tags varchar(60) Tags Of the folder

User_folder_rand_name

Field Type description

id int(11) auto increment field

uid int(11) reference from user_folder table

Folder_rand int(60) random number of the root folder

User_share_prem_group

Field Type description

id int(11) auto increment field

Fid int(11) reference from user_folder table

Share_perm int(60) user ids of the persons to whom it shared

Folder_files
Field Type description

id int(11) auto increment field

Fid int(11) reference from user_folder table

Nid int(60) node id

uid int(60) user id of the file

Files

Drupal default files table structure.

Created By Sunil Kumar.

You might also like