1"""Create STIR/SHAKEN TN table
3Revision ID: bd335bae5d33
5Create Date: 2024-01-09 12:17:47.353533
10revision =
'bd335bae5d33'
11down_revision =
'24c12d8e9014'
14import sqlalchemy
as sa
15from sqlalchemy.dialects.postgresql
import ENUM
17AST_BOOL_NAME =
'ast_bool_values'
18AST_BOOL_VALUES = [
'0',
'1',
24 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=
False)
27 sa.Column(
'id', sa.String(80), nullable=
False, primary_key=
True),
28 sa.Column(
'private_key_file', sa.String(1024), nullable=
True),
29 sa.Column(
'public_cert_url', sa.String(1024), nullable=
True),
30 sa.Column(
'attest_level', sa.String(1), nullable=
True),
31 sa.Column(
'send_mky', ast_bool_values)
35 op.drop_table(
'stir_tn')