Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
e921c9dd
Commit
e921c9dd
authored
Feb 07, 2017
by
Peter van 't Hof
Browse files
Changes to schema
parent
29601ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/summary/db/Schema.scala
View file @
e921c9dd
...
...
@@ -23,6 +23,8 @@ object Schema {
def
tags
=
column
[
Option
[
String
]](
"tags"
)
def
*
=
(
id
,
name
,
runId
,
tags
)
def
idx
=
index
(
"idx_samples"
,
(
runId
,
name
),
unique
=
true
)
}
val
samples
=
TableQuery
[
Samples
]
...
...
@@ -34,26 +36,31 @@ object Schema {
def
tags
=
column
[
Option
[
String
]](
"tags"
)
def
*
=
(
id
,
name
,
runId
,
sampleId
,
tags
)
def
idx
=
index
(
"idx_libraries"
,
(
runId
,
sampleId
,
name
),
unique
=
true
)
}
val
libraries
=
TableQuery
[
Libraries
]
class
PipelineNames
(
tag
:
Tag
)
extends
Table
[(
Int
,
String
)](
tag
,
"PipelineNames"
)
{
class
PipelineNames
(
tag
:
Tag
)
extends
Table
[(
Int
,
String
,
Int
)](
tag
,
"PipelineNames"
)
{
def
id
=
column
[
Int
](
"id"
,
O
.
PrimaryKey
)
def
name
=
column
[
String
](
"name"
)
def
runId
=
column
[
Int
](
"runId"
)
def
*
=
(
id
,
name
)
def
*
=
(
id
,
name
,
runId
)
def
idx
=
index
(
"idx_pipeline_names"
,
(
name
),
unique
=
true
)
def
idx
=
index
(
"idx_pipeline_names"
,
(
name
,
runId
),
unique
=
true
)
}
val
pipelineNames
=
TableQuery
[
PipelineNames
]
class
ModuleNames
(
tag
:
Tag
)
extends
Table
[(
Int
,
String
)](
tag
,
"ModuleNames"
)
{
class
ModuleNames
(
tag
:
Tag
)
extends
Table
[(
Int
,
String
,
Int
,
Int
)](
tag
,
"ModuleNames"
)
{
def
id
=
column
[
Int
](
"id"
,
O
.
PrimaryKey
)
def
name
=
column
[
String
](
"name"
)
def
runId
=
column
[
Int
](
"runId"
)
def
pipelineId
=
column
[
Int
](
"pipelineId"
)
def
*
=
(
id
,
name
)
def
*
=
(
id
,
name
,
runId
,
pipelineId
)
def
idx
=
index
(
"idx_module_names"
,
(
name
),
unique
=
true
)
def
idx
=
index
(
"idx_module_names"
,
(
name
,
runId
,
pipelineId
),
unique
=
true
)
}
val
moduleNames
=
TableQuery
[
ModuleNames
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment