-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
338 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
"""Pydantic model for the Campaign tables | ||
These tables don't have anything beyond | ||
standard Element columns | ||
""" | ||
|
||
from .element import ElementCreateMixin, ElementMixin | ||
|
||
|
||
class CampaignCreate(ElementCreateMixin): | ||
"""Parameters that are used to create new rows but not in DB tables""" | ||
|
||
pass | ||
|
||
|
||
class Campaign(ElementMixin): | ||
"""Parameters that are in DB tables and not used to create new rows""" | ||
|
||
class Config: | ||
orm_mode = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
"""Pydantic model for the Group tables | ||
These tables don't have anything beyond | ||
standard Element columns | ||
""" | ||
|
||
from .element import ElementCreateMixin, ElementMixin | ||
|
||
|
||
class GroupCreate(ElementCreateMixin): | ||
"""Parameters that are used to create new rows but not in DB tables""" | ||
|
||
pass | ||
|
||
|
||
class Group(ElementMixin): | ||
"""Parameters that are in DB tables and not used to create new rows""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
"""Pydantic model for the Job tables | ||
These tables have a few columns beyond the | ||
standard Element columns | ||
""" | ||
from .element import ElementBase, ElementCreateMixin, ElementMixin | ||
|
||
|
||
class JobBase(ElementBase): | ||
"""Parameters that are in DB tables and also used to create new rows""" | ||
|
||
attempt: int = 0 | ||
wms_job_id: str | None = None | ||
stamp_url: str | None = None | ||
|
||
|
||
class JobCreate(JobBase, ElementCreateMixin): | ||
"""Parameters that are used to create new rows but not in DB tables""" | ||
|
||
pass | ||
|
||
|
||
class Job(JobBase, ElementMixin): | ||
"""Parameters that are in DB tables and not used to create new rows""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.