removed fields from MetaDataColumn
This commit is contained in:
@@ -19,17 +19,15 @@ class MetaDataTable(Base, BaseMixin):
|
||||
class MetaDataColumn(Base, BaseMixin):
|
||||
__tablename__ = 'meta_data_column'
|
||||
column_name = Column(String, nullable=False)
|
||||
column_sync_name = Column(String)
|
||||
column_type = Column(String)
|
||||
column_modifier = Column(String, nullable=True)
|
||||
column_order = Column(Integer)
|
||||
is_shown = Column(Boolean)
|
||||
column_label = Column(String)
|
||||
show_filter = Column(Boolean)
|
||||
filter_label = Column(String)
|
||||
ref_column = Column(String, nullable=True)
|
||||
table_id = Column(String, ForeignKey('meta_data_table.id'))
|
||||
table = relationship("MetaDataTable", back_populates="table_columns")
|
||||
column_label = Column(String)
|
||||
filter_label = Column(String)
|
||||
is_shown = Column(Boolean)
|
||||
show_filter = Column(Boolean)
|
||||
ref_column = Column(String, nullable=True)
|
||||
|
||||
def __repr__(self):
|
||||
if self.column_name is None:
|
||||
|
||||
@@ -18,9 +18,7 @@ def get_columns(columns: List[MetaDataColumn]) -> List[MetaDataColumnResponse]:
|
||||
id=column.id,
|
||||
table_name=column.table.table_name,
|
||||
column_name=column.column_name,
|
||||
column_sync_name=column.column_sync_name,
|
||||
column_type=column.column_type,
|
||||
column_modifier=column.column_modifier,
|
||||
column_order=column.column_order,
|
||||
is_shown=column.is_shown,
|
||||
column_label=column.column_label,
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
<table class="table table-hover">
|
||||
<thead><tr>
|
||||
<th scope="col">Column Name</th>
|
||||
<th scope="col">Column Sync Name</th>
|
||||
<th scope="col">Column Type</th>
|
||||
<th scope="col">Column Modifier</th>
|
||||
<th scope="col">Column Order</th>
|
||||
<th scope="col">Is Shown</th>
|
||||
<th scope="col">Column Label</th>
|
||||
@@ -18,9 +16,7 @@
|
||||
{% for column in obj.table_columns %}
|
||||
<tr>
|
||||
<th scope="row"><a href="/admin/metadata/{{column.id}}">{{column.column_name}}</a></th>
|
||||
<td>{{column.column_sync_name}}</td>
|
||||
<td>{{column.column_type}}</td>
|
||||
<td>{{column.column_modifier}}</td>
|
||||
<td>{{column.column_order}}</td>
|
||||
<td>{% with check=column.is_shown %}{% include "components/check.html" %}{% endwith %}</td>
|
||||
<td>{{column.column_label}}</td>
|
||||
|
||||
Reference in New Issue
Block a user