targetTableDefinitions property

List<TableDefinition> targetTableDefinitions
final

Implementation

static final List<_i2.TableDefinition> targetTableDefinitions = [
  _i2.TableDefinition(
    name: 'serverpod_cloud_storage',
    dartName: 'CloudStorageEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault:
            'nextval(\'serverpod_cloud_storage_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'storageId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'path',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'addedTime',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'expiration',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: true,
        dartType: 'DateTime?',
      ),
      _i2.ColumnDefinition(
        name: 'byteData',
        columnType: _i2.ColumnType.bytea,
        isNullable: false,
        dartType: 'dart:typed_data:ByteData',
      ),
      _i2.ColumnDefinition(
        name: 'verified',
        columnType: _i2.ColumnType.boolean,
        isNullable: false,
        dartType: 'bool',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_cloud_storage_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_cloud_storage_path_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'storageId',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'path',
          ),
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: false,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_cloud_storage_expiration',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'expiration',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_cloud_storage_direct_upload',
    dartName: 'CloudStorageDirectUploadEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault:
            'nextval(\'serverpod_cloud_storage_direct_upload_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'storageId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'path',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'expiration',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'authKey',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_cloud_storage_direct_upload_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_cloud_storage_direct_upload_storage_path',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'storageId',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'path',
          ),
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_future_call',
    dartName: 'FutureCallEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_future_call_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'name',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'time',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'serializedObject',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'identifier',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_future_call_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_future_call_time_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'time',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_future_call_serverId_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'serverId',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_future_call_identifier_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'identifier',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_health_connection_info',
    dartName: 'ServerHealthConnectionInfo',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault:
            'nextval(\'serverpod_health_connection_info_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'timestamp',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'active',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'closing',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'idle',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'granularity',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_health_connection_info_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_health_connection_info_timestamp_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'timestamp',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'serverId',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'granularity',
          ),
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_health_metric',
    dartName: 'ServerHealthMetric',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault:
            'nextval(\'serverpod_health_metric_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'name',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'timestamp',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'isHealthy',
        columnType: _i2.ColumnType.boolean,
        isNullable: false,
        dartType: 'bool',
      ),
      _i2.ColumnDefinition(
        name: 'value',
        columnType: _i2.ColumnType.doublePrecision,
        isNullable: false,
        dartType: 'double',
      ),
      _i2.ColumnDefinition(
        name: 'granularity',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_health_metric_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_health_metric_timestamp_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'timestamp',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'serverId',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'name',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'granularity',
          ),
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_log',
    dartName: 'LogEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_log_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'sessionLogId',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'messageId',
        columnType: _i2.ColumnType.bigint,
        isNullable: true,
        dartType: 'int?',
      ),
      _i2.ColumnDefinition(
        name: 'reference',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'time',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'logLevel',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'protocol:LogLevel',
      ),
      _i2.ColumnDefinition(
        name: 'message',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'error',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'stackTrace',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'order',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
    ],
    foreignKeys: [
      _i2.ForeignKeyDefinition(
        constraintName: 'serverpod_log_fk_0',
        columns: ['sessionLogId'],
        referenceTable: 'serverpod_session_log',
        referenceTableSchema: 'public',
        referenceColumns: ['id'],
        onUpdate: _i2.ForeignKeyAction.noAction,
        onDelete: _i2.ForeignKeyAction.cascade,
        matchType: null,
      )
    ],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_log_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_log_sessionLogId_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'sessionLogId',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_message_log',
    dartName: 'MessageLogEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_message_log_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'sessionLogId',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'messageId',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'endpoint',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'messageName',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'duration',
        columnType: _i2.ColumnType.doublePrecision,
        isNullable: false,
        dartType: 'double',
      ),
      _i2.ColumnDefinition(
        name: 'error',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'stackTrace',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'slow',
        columnType: _i2.ColumnType.boolean,
        isNullable: false,
        dartType: 'bool',
      ),
      _i2.ColumnDefinition(
        name: 'order',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
    ],
    foreignKeys: [
      _i2.ForeignKeyDefinition(
        constraintName: 'serverpod_message_log_fk_0',
        columns: ['sessionLogId'],
        referenceTable: 'serverpod_session_log',
        referenceTableSchema: 'public',
        referenceColumns: ['id'],
        onUpdate: _i2.ForeignKeyAction.noAction,
        onDelete: _i2.ForeignKeyAction.cascade,
        matchType: null,
      )
    ],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_message_log_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      )
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_method',
    dartName: 'MethodInfo',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_method_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'endpoint',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'method',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_method_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_method_endpoint_method_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'endpoint',
          ),
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'method',
          ),
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_migrations',
    dartName: 'DatabaseMigrationVersion',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_migrations_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'module',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'version',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'timestamp',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: true,
        dartType: 'DateTime?',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_migrations_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_migrations_ids',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'module',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_query_log',
    dartName: 'QueryLogEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_query_log_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'sessionLogId',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
      _i2.ColumnDefinition(
        name: 'messageId',
        columnType: _i2.ColumnType.bigint,
        isNullable: true,
        dartType: 'int?',
      ),
      _i2.ColumnDefinition(
        name: 'query',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'duration',
        columnType: _i2.ColumnType.doublePrecision,
        isNullable: false,
        dartType: 'double',
      ),
      _i2.ColumnDefinition(
        name: 'numRows',
        columnType: _i2.ColumnType.bigint,
        isNullable: true,
        dartType: 'int?',
      ),
      _i2.ColumnDefinition(
        name: 'error',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'stackTrace',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'slow',
        columnType: _i2.ColumnType.boolean,
        isNullable: false,
        dartType: 'bool',
      ),
      _i2.ColumnDefinition(
        name: 'order',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
    ],
    foreignKeys: [
      _i2.ForeignKeyDefinition(
        constraintName: 'serverpod_query_log_fk_0',
        columns: ['sessionLogId'],
        referenceTable: 'serverpod_session_log',
        referenceTableSchema: 'public',
        referenceColumns: ['id'],
        onUpdate: _i2.ForeignKeyAction.noAction,
        onDelete: _i2.ForeignKeyAction.cascade,
        matchType: null,
      )
    ],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_query_log_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_query_log_sessionLogId_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'sessionLogId',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_readwrite_test',
    dartName: 'ReadWriteTestEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault:
            'nextval(\'serverpod_readwrite_test_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'number',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_readwrite_test_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      )
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_runtime_settings',
    dartName: 'RuntimeSettings',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault:
            'nextval(\'serverpod_runtime_settings_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'logSettings',
        columnType: _i2.ColumnType.json,
        isNullable: false,
        dartType: 'protocol:LogSettings',
      ),
      _i2.ColumnDefinition(
        name: 'logSettingsOverrides',
        columnType: _i2.ColumnType.json,
        isNullable: false,
        dartType: 'List<protocol:LogSettingsOverride>',
      ),
      _i2.ColumnDefinition(
        name: 'logServiceCalls',
        columnType: _i2.ColumnType.boolean,
        isNullable: false,
        dartType: 'bool',
      ),
      _i2.ColumnDefinition(
        name: 'logMalformedCalls',
        columnType: _i2.ColumnType.boolean,
        isNullable: false,
        dartType: 'bool',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_runtime_settings_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      )
    ],
    managed: true,
  ),
  _i2.TableDefinition(
    name: 'serverpod_session_log',
    dartName: 'SessionLogEntry',
    schema: 'public',
    module: 'serverpod',
    columns: [
      _i2.ColumnDefinition(
        name: 'id',
        columnType: _i2.ColumnType.bigint,
        isNullable: false,
        dartType: 'int?',
        columnDefault: 'nextval(\'serverpod_session_log_id_seq\'::regclass)',
      ),
      _i2.ColumnDefinition(
        name: 'serverId',
        columnType: _i2.ColumnType.text,
        isNullable: false,
        dartType: 'String',
      ),
      _i2.ColumnDefinition(
        name: 'time',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
      _i2.ColumnDefinition(
        name: 'module',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'endpoint',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'method',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'duration',
        columnType: _i2.ColumnType.doublePrecision,
        isNullable: true,
        dartType: 'double?',
      ),
      _i2.ColumnDefinition(
        name: 'numQueries',
        columnType: _i2.ColumnType.bigint,
        isNullable: true,
        dartType: 'int?',
      ),
      _i2.ColumnDefinition(
        name: 'slow',
        columnType: _i2.ColumnType.boolean,
        isNullable: true,
        dartType: 'bool?',
      ),
      _i2.ColumnDefinition(
        name: 'error',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'stackTrace',
        columnType: _i2.ColumnType.text,
        isNullable: true,
        dartType: 'String?',
      ),
      _i2.ColumnDefinition(
        name: 'authenticatedUserId',
        columnType: _i2.ColumnType.bigint,
        isNullable: true,
        dartType: 'int?',
      ),
      _i2.ColumnDefinition(
        name: 'isOpen',
        columnType: _i2.ColumnType.boolean,
        isNullable: true,
        dartType: 'bool?',
      ),
      _i2.ColumnDefinition(
        name: 'touched',
        columnType: _i2.ColumnType.timestampWithoutTimeZone,
        isNullable: false,
        dartType: 'DateTime',
      ),
    ],
    foreignKeys: [],
    indexes: [
      _i2.IndexDefinition(
        indexName: 'serverpod_session_log_pkey',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'id',
          )
        ],
        type: 'btree',
        isUnique: true,
        isPrimary: true,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_session_log_serverid_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'serverId',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_session_log_touched_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'touched',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
      _i2.IndexDefinition(
        indexName: 'serverpod_session_log_isopen_idx',
        tableSpace: null,
        elements: [
          _i2.IndexElementDefinition(
            type: _i2.IndexElementDefinitionType.column,
            definition: 'isOpen',
          )
        ],
        type: 'btree',
        isUnique: false,
        isPrimary: false,
      ),
    ],
    managed: true,
  ),
];