Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
e921c9dd
Commit
e921c9dd
authored
Feb 07, 2017
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to schema
parent
29601ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/summary/db/Schema.scala
...n/scala/nl/lumc/sasc/biopet/utils/summary/db/Schema.scala
+13
-6
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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