-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.py
More file actions
94 lines (61 loc) · 1.93 KB
/
meta.py
File metadata and controls
94 lines (61 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["Meta", "Schemas", "SchemasTables", "SchemasTablesFields"]
class SchemasTablesFields(BaseModel):
created_at: datetime
"""created time"""
curr_desc: str
"""current field description"""
curr_desc_stat: str
"""current field description status"""
full_name: str
"""field full name"""
modified_at: datetime
"""modified time"""
name: str
"""field_name"""
origin_desc: str
"""field description from database"""
data_type: Optional[str] = None
"""field data type"""
identifiable_type: Optional[
Literal["plain", "person_name", "email", "ssn", "id", "phone", "address", "company", "bank_card"]
] = None
"""identifiable type"""
sample_data: Optional[str] = None
"""field sample data"""
visibility: Optional[bool] = None
"""field visibility"""
class SchemasTables(BaseModel):
curr_desc: str
"""current table description"""
curr_desc_stat: str
"""current table description status"""
fields: Dict[str, SchemasTablesFields]
full_name: str
"""field full name"""
name: str
"""table_name"""
origin_desc: str
"""table description from database"""
table_type: Optional[Literal["table", "view"]] = None
"""table type"""
class Schemas(BaseModel):
curr_desc: str
"""current schema description"""
curr_desc_stat: str
"""current schema description status"""
name: str
"""schema_name"""
origin_desc: str
"""schema description from database"""
tables: Dict[str, SchemasTables]
custom_configs: Optional[object] = None
"""custom configs"""
class Meta(BaseModel):
datasource_id: str
"""datasource_id"""
schemas: Dict[str, Schemas]