From e9228d2df10f1e4a72e77100ef6fd89cccfaf66a Mon Sep 17 00:00:00 2001 From: Rudolf Braun Date: Mon, 24 Jun 2024 18:59:34 +0200 Subject: [PATCH 1/2] Add site owner to SiteSQL Add optional column (owner) to site table Signed-off-by: Rudolf Braun --- pvsite_datamodel/sqlmodels.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pvsite_datamodel/sqlmodels.py b/pvsite_datamodel/sqlmodels.py index 3e42cd6..0d5ab5a 100644 --- a/pvsite_datamodel/sqlmodels.py +++ b/pvsite_datamodel/sqlmodels.py @@ -123,6 +123,7 @@ class SiteSQL(Base, CreatedMixin): region = sa.Column( sa.String(255), comment="The region within the country in which the site is located" ) + owner = sa.Column(sa.String(255), comment="The Name of the site owner") dno = sa.Column(sa.String(255), comment="The Distribution Node Operator that owns the site") gsp = sa.Column(sa.String(255), comment="The Grid Supply Point in which the site is located") From da4da73e22e6c88ee91b9baf69c57126cdb2530f Mon Sep 17 00:00:00 2001 From: Rudolf Braun Date: Mon, 24 Jun 2024 19:04:55 +0200 Subject: [PATCH 2/2] lower case comment Signed-off-by: Rudolf Braun --- pvsite_datamodel/sqlmodels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvsite_datamodel/sqlmodels.py b/pvsite_datamodel/sqlmodels.py index 0d5ab5a..f1ca252 100644 --- a/pvsite_datamodel/sqlmodels.py +++ b/pvsite_datamodel/sqlmodels.py @@ -123,7 +123,7 @@ class SiteSQL(Base, CreatedMixin): region = sa.Column( sa.String(255), comment="The region within the country in which the site is located" ) - owner = sa.Column(sa.String(255), comment="The Name of the site owner") + owner = sa.Column(sa.String(255), comment="The name of the site owner") dno = sa.Column(sa.String(255), comment="The Distribution Node Operator that owns the site") gsp = sa.Column(sa.String(255), comment="The Grid Supply Point in which the site is located")