Coverage for toardb/stationmeta/models_global_services.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-03 20:32 +0000

1# SPDX-FileCopyrightText: 2021 Forschungszentrum Jülich GmbH 

2# SPDX-License-Identifier: MIT 

3 

4""" 

5class StationmetaGlobalService (Base) 

6===================================== 

7""" 

8from sqlalchemy import Column, String 

9from toardb.base import Base 

10 

11class StationmetaGlobalService(Base): 

12 """ 

13 Table "public.stationmeta_global_services" 

14 

15 +--------------------+------------------------+-----------+----------+---------------------------------------------------------+ 

16 | Column | Type | Collation | Nullable | Default | 

17 +====================+========================+===========+==========+=========================================================+ 

18 | variable_name | character varying(64) | | not null | | 

19 +--------------------+------------------------+-----------+----------+---------------------------------------------------------+ 

20 | service_url | character varying(200) | | not null | | 

21 +--------------------+------------------------+-----------+----------+---------------------------------------------------------+ 

22 

23 Indexes: 

24 "stationmeta_global_services_service_url_key" UNIQUE CONSTRAINT, btree (service_url) 

25 "stationmeta_global_services_service_url_c8ee80c5_like" btree (service_url varchar_pattern_ops) 

26 """ 

27 

28 __tablename__ = 'stationmeta_global_services' 

29 variable_name = Column(String(64), primary_key=True, nullable=False) 

30 service_url = Column(String(200), nullable=False, unique=True) 

31