Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
3 Schweinehunde
Encrateia
Commits
9c70202d
Commit
9c70202d
authored
May 14, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag and tagGroup models
parent
eca77bf4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2230 additions
and
0 deletions
+2230
-0
lib/model/model.dart
lib/model/model.dart
+36
-0
lib/model/model.g.dart
lib/model/model.g.dart
+2194
-0
No files found.
lib/model/model.dart
View file @
9c70202d
...
...
@@ -304,6 +304,40 @@ const tableHeartRateZone = SqfEntityTable(
],
);
const
tableTagGroup
=
SqfEntityTable
(
tableName:
'tagGroups'
,
primaryKeyName:
'id'
,
primaryKeyType:
PrimaryKeyType
.
integer_auto_incremental
,
useSoftDeleting:
false
,
modelName:
'DbTagGroup'
,
fields:
[
SqfEntityField
(
'name'
,
DbType
.
text
),
SqfEntityField
(
'color'
,
DbType
.
integer
),
SqfEntityField
(
'system'
,
DbType
.
bool
),
SqfEntityFieldRelationship
(
parentTable:
tableAthlete
,
deleteRule:
DeleteRule
.
CASCADE
,
defaultValue:
0
),
],
);
const
tableTag
=
SqfEntityTable
(
tableName:
'tags'
,
primaryKeyName:
'id'
,
primaryKeyType:
PrimaryKeyType
.
integer_auto_incremental
,
useSoftDeleting:
false
,
modelName:
'DbTag'
,
fields:
[
SqfEntityField
(
'name'
,
DbType
.
text
),
SqfEntityField
(
'color'
,
DbType
.
integer
),
SqfEntityField
(
'system'
,
DbType
.
bool
),
SqfEntityFieldRelationship
(
parentTable:
tableTagGroup
,
deleteRule:
DeleteRule
.
CASCADE
,
defaultValue:
0
),
],
);
@SqfEntityBuilder
(
encrateia
)
const
encrateia
=
SqfEntityModel
(
modelName:
'DbEncrateia'
,
// optional
...
...
@@ -318,6 +352,8 @@ const encrateia = SqfEntityModel(
tableHeartRateZone
,
tablePowerZoneSchema
,
tablePowerZone
,
tableTag
,
tableTagGroup
,
],
sequences:
[],
bundledDatabasePath:
null
,
...
...
lib/model/model.g.dart
View file @
9c70202d
This diff is collapsed.
Click to expand it.
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