Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!179
alter email in partner table and make it required
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
alter email in partner table and make it required
refactor/NAT-472-add-partner-model
into
develop
Overview
0
Commits
2
Pipelines
4
Changes
2
Merged
Mohammad Torkashvand
requested to merge
refactor/NAT-472-add-partner-model
into
develop
1 year ago
Overview
0
Commits
2
Pipelines
4
Changes
2
Expand
0
0
Merge request reports
Viewing commit
65d397d3
Prev
Next
Show latest version
2 files
+
36
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
65d397d3
alter email in partner table and make it required
· 65d397d3
Mohammad Torkashvand
authored
1 year ago
gso/db/models.py
+
6
−
5
Options
@@ -33,18 +33,19 @@ class PartnerTable(BaseModel):
__tablename__
=
"
partners
"
partner_id
=
mapped_column
(
String
,
server_default
=
text
(
"
uuid_generate_v4
"
),
primary_key
=
True
)
name
=
mapped_column
(
String
,
unique
=
True
)
email
=
mapped_column
(
String
,
unique
=
True
,
nullable
=
True
)
name
=
mapped_column
(
String
,
unique
=
True
,
nullable
=
True
)
email
=
mapped_column
(
String
,
unique
=
True
,
nullable
=
False
)
partner_type
=
mapped_column
(
Enum
(
PartnerType
),
nullable
=
False
)
as_number
=
mapped_column
(
String
,
unique
=
True
String
,
unique
=
True
,
nullable
=
True
)
# the as_number and as_set are mutually exclusive. if you give me one I don't need the other
as_set
=
mapped_column
(
String
)
as_set
=
mapped_column
(
String
,
nullable
=
True
)
route_set
=
mapped_column
(
String
,
nullable
=
True
)
black_listed_as_sets
=
mapped_column
(
ARRAY
(
String
),
nullable
=
True
)
additional_routers
=
mapped_column
(
ARRAY
(
String
),
nullable
=
True
)
additional_bgp_speakers
=
mapped_column
(
ARRAY
(
String
),
nullable
=
True
)
partner_type
=
mapped_column
(
Enum
(
PartnerType
),
nullable
=
False
)
created_at
=
mapped_column
(
UtcTimestamp
,
server_default
=
text
(
"
current_timestamp
"
),
nullable
=
False
)
updated_at
=
mapped_column
(
UtcTimestamp
,
server_default
=
text
(
"
current_timestamp
"
),
nullable
=
False
,
onupdate
=
text
(
"
current_timestamp
"
)
Loading