Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add database initial schema #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions docs/database-schema.dbml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// Use DBML to define your database structure
// Docs: https://dbml.dbdiagram.io/docs

Table compounds {
Biocide_name varchar
CAS_Number varchar
Chemical_class varchar
}

Table experimental {
BacMet_ID varchar
Gene_name varchar
Code_For varchar
Family varchar
Proteinaccession_NCBI varchar //Could be foreign key?
Nucleotide_accession_ENA_EMBL varchar //Could be foreign key?
Protein_accession_Uniprot varchar //Could be foreign key?
Organism varchar //Could be foreign key?
Location varchar //Could be foreign key?
Type_of_compounds varchar //Could be foreign key?
Compound varchar // Foreign key to compounds table
Description varchar
Length_aa varchar
Reference varchar
Number_of_homologues int
}

Table groups {
Unique_ID varchar //The second part seems to be the Proteinaccession_NCBI
Sequence varchar
Matching_IDs varchar //This is definitely not a varchar

}

Table homologues {
query varchar
target varchar
fident float
alnlen int
mismatch int
gapopen int
qstart int
qend int
qlen int
tstart int
tend int
tlen int
evalue int //Very big number
bits int
prob int
lddt float
alntmscore float
rmsd float
}

Table pdb {
Proteinaccession_NCBI varchar //This is the filename
Location varchar // I am guessing we will store these files somewhere
}

Ref experimental: experimental.Compound < compounds.Biocide_name

Ref homologues: homologues.target < groups.Matching_IDs

Ref experimental: pdb.Proteinaccession_NCBI < experimental.Proteinaccession_NCBI