Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

108 KB
Raw Blame
import { DatabaseType } from '@/lib/domain/database-type';
import type { Template } from '../templates-data';
import image from '@/assets/templates/cabot-db.png';
import imageDark from '@/assets/templates/cabot-db-dark.png';

const now = Date.now();

export const cabotDb: Template = {
    slug: 'cabot-database',
    name: 'Cabot',
    shortDescription: 'Monitoring and alerts service',
    description:
        'Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty.',
    image,
    imageDark,
    tags: ['Postgres', 'Python', 'Django'],
    featured: false,
    url: 'https://github.com/arachnys/cabot',
    diagram: {
        id: 'cabot_db',
        name: 'cabot-database',
        createdAt: new Date(),
        updatedAt: new Date(),
        databaseType: DatabaseType.POSTGRESQL,
        tables: [
            {
                id: '289m0pav8pj7g7tfvu4uf1p6n',
                name: 'instance_status_snapshot',
                schema: 'public',
                x: 234.69806809737793,
                y: 1485.1476659188327,
                fields: [
                    {
                        id: 'ffg7cgh3d4tzcfkdxpbiwgvv9',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '2r2cnnbeqhyux66sg5bkny39s',
                        name: 'time',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '6wl4lm63u9hz6we757ghokj3g',
                        name: 'num_checks_active',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'qaot6vldsaanl7ll3es8sumb0',
                        name: 'num_checks_passing',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'kdbblg6j4dq54zqyyznjm8jp5',
                        name: 'num_checks_failing',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '48bg1kecwo2bfw73088ff1iv4',
                        name: 'overall_status',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '2oxndze8gbufgfq1ry6tb2swy',
                        name: 'did_send_alert',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'v8s1vno4mwfm7ihefn0tyk64i',
                        name: 'instance_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'miwdf3bmkda84ne3cr5pcry4o',
                        name: 'instance_status_snapshot_pkey',
                        unique: true,
                        fieldIds: ['ffg7cgh3d4tzcfkdxpbiwgvv9'],
                        createdAt: now,
                    },
                ],
                color: '#8eb7ff',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '2g5a37ob099bhsuieq9ab929o',
                name: 'service_status_check',
                schema: 'public',
                x: 1511.091270347399,
                y: 1442.6321096634754,
                fields: [
                    {
                        id: 'qn00uqdnd8ogrw364tidyjbxk',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'd01n6izgorbu9uvstne0y3u1x',
                        name: 'service_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'dth8p4sc3de0ejikckptooqc9',
                        name: 'status_check_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'hj962r7via6yzdtdwd2tf81s8',
                        name: 'service_status_check_pkey',
                        unique: true,
                        fieldIds: ['qn00uqdnd8ogrw364tidyjbxk'],
                        createdAt: now,
                    },
                ],
                color: '#b067e9',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '2ghbyz6qz80jg3clggsq2fwy9',
                name: 'instance_status_check',
                schema: 'public',
                x: -288.9087296526011,
                y: 559.619407771256,
                fields: [
                    {
                        id: 'z0qaexmm21uen0z5ddqimv12n',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '7titj5v9ih6rgj9gwy0suaojd',
                        name: 'status_check_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'apcysjrim5wq83p8vx0tsgwxh',
                        name: 'instance_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 't8hwh3n0mhe755q6oncpjyywz',
                        name: 'instance_status_check_pkey',
                        unique: true,
                        fieldIds: ['z0qaexmm21uen0z5ddqimv12n'],
                        createdAt: now,
                    },
                ],
                color: '#b067e9',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'acyynxu05uajz4kegsv252ph9',
                name: 'alert_plugin_service',
                schema: 'public',
                x: 1311.091270347399,
                y: 1009.619407771256,
                fields: [
                    {
                        id: 'wwhwjf7iizrzhghyrbqex4z2w',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'g3cs00ub96ophp4zk2wxy8wdx',
                        name: 'alert_plugin_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'j3i65nsbpfp9u45tmg4jmp6pc',
                        name: 'service_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'fiy084zejs1477ws60osptkgx',
                        name: 'alert_plugin_service_pkey',
                        unique: true,
                        fieldIds: ['wwhwjf7iizrzhghyrbqex4z2w'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'adepxg04z9rk1yxale4m0pu8z',
                name: 'alert_plugin_instance',
                schema: 'public',
                x: 511.0912703473989,
                y: 1009.619407771256,
                fields: [
                    {
                        id: 'ie9mcbcvvexv52jw6vs050doh',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'uby6hrs70gtws67wwthlaz1if',
                        name: 'alert_plugin_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ojgqs3fbjexpre4yazvztuals',
                        name: 'instance_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'el9xhcx9sd6b50utal5kyzv4f',
                        name: 'alert_plugin_instance_pkey',
                        unique: true,
                        fieldIds: ['ie9mcbcvvexv52jw6vs050doh'],
                        createdAt: now,
                    },
                ],
                color: '#b067e9',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'b26phz0szmrtpu3xukpp0afcv',
                name: 'user',
                schema: 'public',
                x: 2511.0912703473987,
                y: 1009.619407771256,
                fields: [
                    {
                        id: '8apkn00up0ucg3r4dwcmu8plg',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'vg4c0zy1k30w9apkujb13frbz',
                        name: 'username',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '9fh7zixbq92yu42te3ckkcn16',
                        name: 'first_name',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '1rjf68w2fmkx7ksny0dbtgukj',
                        name: 'last_name',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'it5cv2y8r5le5s2la1bskrtz2',
                        name: 'email',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'd1nbxak6lk5dj5yfl13s8lngp',
                        name: 'password',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 's24ogodllxi4ob2nwvcf32o1z',
                        name: 'is_staff',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'jwzm8nxzuvcg5g724mwwmc94q',
                        name: 'is_active',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'qlkk5aenwu5lmfff4rx8k8b85',
                        name: 'is_superuser',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '5pzb6ei7suoxmvytkvuu9a9rf',
                        name: 'last_login',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'uzu0gf6jmv7ng9igvkyvnnd6g',
                        name: 'date_joined',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '6a5k6hi45dmarwn2rnttwyeav',
                        name: 'user_pkey',
                        unique: true,
                        fieldIds: ['8apkn00up0ucg3r4dwcmu8plg'],
                        createdAt: now,
                    },
                ],
                color: '#4dee8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'dkxb5j0xwpxd7m8sld626yikf',
                name: 'icmp_status_check',
                schema: 'public',
                x: 100.00000000000003,
                y: 600,
                fields: [
                    {
                        id: 'soe2o9gdqveztta1wmbjmr59t',
                        name: 'statuscheck_ptr_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'gp4pc5wz39hav0p9vgijnuoa6',
                        name: 'endpoint',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'c9nlkxqlogouurre9599rfj87',
                        name: 'timeout',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'pxbg44dz2hqs7hhpq8rt9xtfa',
                        name: 'icmp_status_check_pkey',
                        unique: true,
                        fieldIds: ['soe2o9gdqveztta1wmbjmr59t'],
                        createdAt: now,
                    },
                ],
                color: '#8a61f5',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'erpxfyf9b0nn0b8ruuezd7nnt',
                name: 'alert_plugin_user_data',
                schema: 'public',
                x: 2511.0912703473987,
                y: 559.6194077712561,
                fields: [
                    {
                        id: 'v5hdctjhcetf31b0itn7nky1p',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'q9atbq7csij46qs7snwbmw677',
                        name: 'title',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ssmv81aewvc261ud8a72atacj',
                        name: 'polymorphic_ctype',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'o0c93op0gwm4piux9j5ucdnuy',
                        name: 'user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'wuzbqly6npzacpketosqizyan',
                        name: 'alert_plugin_user_data_title_user_id_unique',
                        unique: true,
                        fieldIds: [
                            'q9atbq7csij46qs7snwbmw677',
                            'o0c93op0gwm4piux9j5ucdnuy',
                        ],
                        createdAt: now,
                    },
                    {
                        id: '2tva3wbf9mzr8ex1l5qv6hnr1',
                        name: 'alert_plugin_user_data_pkey',
                        unique: true,
                        fieldIds: ['v5hdctjhcetf31b0itn7nky1p'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'gwgd7y6e3gvkwlxcnbzvorgh1',
                name: 'jenkins_config',
                schema: 'public',
                x: 99.99999999999991,
                y: -349.99999999999994,
                fields: [
                    {
                        id: 'b14pj3k6c2e6al6vki0b1elca',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'iaw1nst78z6yeba21hcffzfdn',
                        name: 'name',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'bu38eh2hip801hd13upjw2fi3',
                        name: 'jenkins_api',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'q5r6911ccvfoklejpl8wu6fom',
                        name: 'jenkins_user',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '77apnla5xb3sk7mqfx9xm8jlg',
                        name: 'jenkins_pass',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '11s226ymyodkta4pefovgbwhq',
                        name: 'jenkins_config_pkey',
                        unique: true,
                        fieldIds: ['b14pj3k6c2e6al6vki0b1elca'],
                        createdAt: now,
                    },
                ],
                color: '#c05dcf',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'h5qj5g52zspl2tszk24110nev',
                name: 'service_user',
                schema: 'public',
                x: 2711.0912703473987,
                y: 1442.6321096634751,
                fields: [
                    {
                        id: 'onnmsci24vqisx39msw4labp4',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'stzg5a3ltgiybqhyu68vzgkp3',
                        name: 'service_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'nvatz1cfhk8kopcpeahp1zkh5',
                        name: 'user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '2a7u7tjqf7jmwo7s35vtc7rsi',
                        name: 'service_user_pkey',
                        unique: true,
                        fieldIds: ['onnmsci24vqisx39msw4labp4'],
                        createdAt: now,
                    },
                ],
                color: '#7175fa',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'hmw4ezzrg10e6080h4p54qi4m',
                name: 'status_check',
                schema: 'public',
                x: 100,
                y: 100,
                fields: [
                    {
                        id: '7zypig7cu0jo1kufq0nu9g9xe',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 't8r1t9xetnci09exb2pqibbgu',
                        name: 'name',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'f7zah30nbrutvnt2jzwq9f1ts',
                        name: 'active',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'rgpugt8b7ojgtm47kuqom4zfy',
                        name: 'importance',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '0wthdjk9www61bra07lognmo7',
                        name: 'frequency',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ze1t6xwmzgpby0we8v9u0rfw5',
                        name: 'debounce',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'kfrnei2y38udimsjconza7nz8',
                        name: 'calculated_status',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '4uq736kai6k8i3mvcxw7wxd2b',
                        name: 'last_run',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'grhptktoweczo1r30u2tmdy3z',
                        name: 'cached_health',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'ixih12xwofuj86ydhwrscpcu4',
                        name: 'metric',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '4i0kx5z3sz2p9vrygcb8dbfun',
                        name: 'check_type',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '5yonoa5bok9g4xsl1bh6i66xa',
                        name: 'value',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'dz0rbo912655vei5dbl7vyjsy',
                        name: 'expected_num_hosts',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '56zqi49jquj3r7158kvfxq32l',
                        name: 'allowed_num_failures',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'veascaebxv35c0ncl5u6kojce',
                        name: 'endpoint',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '6udbu1ikbhp6yvr1baps3xxrl',
                        name: 'username',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'vo1pk8o993t7w1s98zify6ym8',
                        name: 'password',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'm3otp201bzx8ojt2xfs732emf',
                        name: 'text_match',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'j50ontr5ra84xgmujduce0sqq',
                        name: 'status_code',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'saydfqolyrftrdpsk6w48bjd6',
                        name: 'timeout',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '3021drapgyviauqziuyu1qrca',
                        name: 'verify_ssl_certificate',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 's4zd8fm5cy70wel5oktf3t1xf',
                        name: 'max_queued_build_time',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '0fkna6qy8yr3zbfr8rr44dogu',
                        name: 'created_by',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'kdzsbpwp9trxg865flb1tfm8w',
                        name: 'status_check_pkey',
                        unique: true,
                        fieldIds: ['7zypig7cu0jo1kufq0nu9g9xe'],
                        createdAt: now,
                    },
                ],
                color: '#8a61f5',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'ihd99d2agwucv4szocruel4il',
                name: 'jenkins_status_check',
                schema: 'public',
                x: -300,
                y: 100.00000000000006,
                fields: [
                    {
                        id: 'o5m53rxstoj07ot5lxkgki8ur',
                        name: 'statuscheck_ptr_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '3smw558f4t2azn6fz3ixhrdjt',
                        name: 'jenkins_config_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'k2n9qz4ktuoj8jer8lb7g8rtj',
                        name: 'jenkins_status_check_pkey',
                        unique: true,
                        fieldIds: ['o5m53rxstoj07ot5lxkgki8ur'],
                        createdAt: now,
                    },
                ],
                color: '#42e0c0',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'k9nq8pb1s0vtvi676huizdeac',
                name: 'instance_service',
                schema: 'public',
                x: 1911.091270347399,
                y: 1442.6321096634751,
                fields: [
                    {
                        id: '8ly2x5z0ygws9rz47xxmaztwt',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ho6gwfsp2h9o402atokdi14bn',
                        name: 'instance_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '39rolyh0m57c3caizwnod8j1n',
                        name: 'service_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'w7ujcightouup2u3byfesv91f',
                        name: 'instance_service_pkey',
                        unique: true,
                        fieldIds: ['8ly2x5z0ygws9rz47xxmaztwt'],
                        createdAt: now,
                    },
                ],
                color: '#ff9f74',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'm2n2pgaz6i329c06oreesemhj',
                name: 'instance_users',
                schema: 'public',
                x: 2911.0912703473987,
                y: 1009.619407771256,
                fields: [
                    {
                        id: '2bdf3hpo6grtec53tnogewu9y',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'uf8obr3vrnue7ogg8xyuly3li',
                        name: 'user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'dnlp6rac6kxsrqat8sg1fflmo',
                        name: 'instance_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '2ianvdxoi2871kohtyexct47l',
                        name: 'instance_users_pkey',
                        unique: true,
                        fieldIds: ['2bdf3hpo6grtec53tnogewu9y'],
                        createdAt: now,
                    },
                ],
                color: '#ff6b8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'ogwixfufu9zxpakbxxqyb3viq',
                name: 'instance',
                schema: 'public',
                x: 111.09127034739893,
                y: 1009.619407771256,
                fields: [
                    {
                        id: '7w7zi9jfsf8ttxkw2hgzppwkf',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ro15p478wm4qqsqmbdqzrc1xg',
                        name: 'name',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hgfhi0bi1n6i43mjtrlm5puvr',
                        name: 'alerts_enabled',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ngkxp7sabuv0aq2z3x5o6t2xl',
                        name: 'last_alert_sent',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'ucoghjrrs2g8sk0pclvfk3wmb',
                        name: 'email_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '5oa2hyprnbj3ni5cjh0b88gaa',
                        name: 'hipchat_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'fmng66ujr96g0g3c0t90343xp',
                        name: 'sms_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'h8qniszk0jrx73emrqgvj9ds7',
                        name: 'telephone_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '5negnbzs245jss752ies2r998',
                        name: 'overall_status',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'i4kls5hvmkv5eao8t7zgycqj9',
                        name: 'old_overall_status',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'yvcrgrplm1s6wpkwcblbjsrml',
                        name: 'hackpad_id',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'fons8opzz4zlrw3ubaayeodhy',
                        name: 'runbook_link',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '7u8ook85e9pwrxn63abkclgf6',
                        name: 'address',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'daqmlme5pquyz54xu5d42chz7',
                        name: 'alerts',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'jqhx4lpeq6jc24zngk1x7k3j7',
                        name: 'instance_pkey',
                        unique: true,
                        fieldIds: ['7w7zi9jfsf8ttxkw2hgzppwkf'],
                        createdAt: now,
                    },
                ],
                color: '#b067e9',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'ovnwer9a3ie8kfv1h9rfdp278',
                name: 'graphite_status_check',
                schema: 'public',
                x: 500,
                y: 100,
                fields: [
                    {
                        id: '96mgizk5xa787xkpensbr2dye',
                        name: 'statuscheck_ptr_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hk1r2copv8uara4xworqe40ue',
                        name: 'metric',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'xdisxsc299xbvcvkl49c8kx60',
                        name: 'check_type',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ts79mqj9x7dysm7gfozbvc3p3',
                        name: 'value',
                        type: {
                            id: 'double_precision',
                            name: 'double precision',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'yxq88l5umx54lioifunhzkrm2',
                        name: 'expected_num_hosts',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'qpoytl6n1mo0r57n12c2neabd',
                        name: 'allowed_num_failures',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '052g61lnrh4y1kke1g1gdyqzo',
                        name: 'graphite_status_check_pkey',
                        unique: true,
                        fieldIds: ['96mgizk5xa787xkpensbr2dye'],
                        createdAt: now,
                    },
                ],
                color: '#7175fa',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'p16q7p1q8j9p3ud529lwtrss7',
                name: 'alert_acknowledgement',
                schema: 'public',
                x: 2111.0912703473987,
                y: 1009.619407771256,
                fields: [
                    {
                        id: '6f69ubh5rpdk9entbq6782hkz',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'wnjd1fdb127pr56zx3keicr6o',
                        name: 'time',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ngzreixxzgzn3rb6uvinoq6lj',
                        name: 'cancelled_time',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'j4tmnkco7uhsnpfcfwzz4crbg',
                        name: 'cancelled_user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'rc55akr0tj6sf7jubuo5p70l7',
                        name: 'service_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '3y3lumb16v7asidckv27lqzhc',
                        name: 'user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'qg4aoy1d9f4rcfqwgdj1mm9rl',
                        name: 'alert_acknowledgement_pkey',
                        unique: true,
                        fieldIds: ['6f69ubh5rpdk9entbq6782hkz'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'qb1s1uv828fkercy98l9aqm0n',
                name: 'shift',
                schema: 'public',
                x: 2311.0912703473987,
                y: 1442.6321096634754,
                fields: [
                    {
                        id: 'fwx7pk5a5g9zhl79qrrm70mfv',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ab7aymxm4t3mdxmxganiu5wsu',
                        name: 'start',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '8m09odhicfxjjwb5y2iclene4',
                        name: 'end',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'nnnvjd1g0zforflqjc69q3c6p',
                        name: 'uid',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'kdqd46xfpkixpwzizsp8dxiq1',
                        name: 'last_modified',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'mq2vpnevaznggtq6jawjzs631',
                        name: 'deleted',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ojz1lp63052z0xhorqorl9xtv',
                        name: 'user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'kv2nti4g09htdktv58yjhf622',
                        name: 'shift_pkey',
                        unique: true,
                        fieldIds: ['fwx7pk5a5g9zhl79qrrm70mfv'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'r99f8hhi0dlvoyj64vweu0ba6',
                name: 'status_check_result',
                schema: 'public',
                x: -288.9087296526012,
                y: -359.61940777125585,
                fields: [
                    {
                        id: '1xgnw2ml9ho5ebak2tjueljef',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'pf92vncoeowbghzbpsdtxe1tm',
                        name: 'time',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'lfj6izi97abq2mooaz6on5xv9',
                        name: 'time_complete',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '4yrlcmqrlao4xhwf8s1dhwjvj',
                        name: 'raw_data',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '8ccszwn2a2xyffyart9480f2c',
                        name: 'succeeded',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'lu49y640z7hrnftkw51lh14tj',
                        name: 'error',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '9hy1jyx5z1ozyrem7sdxm8o74',
                        name: 'job_number',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'bevyt1y4xxhoojpq3sw8f7sty',
                        name: 'status_check_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'q69vdd82hemmt8dezlvl628sw',
                        name: 'consecutive_failures',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'h0d5vtzkg3hbxs4e6e64pb5g0',
                        name: 'status_check_result_status_check_id_id_index',
                        unique: false,
                        fieldIds: [
                            'bevyt1y4xxhoojpq3sw8f7sty',
                            '1xgnw2ml9ho5ebak2tjueljef',
                        ],
                        createdAt: now,
                    },
                    {
                        id: 'i1ozz684afv7jieuslvtac4ua',
                        name: 'status_check_result_status_check_id_time_complete_index',
                        unique: false,
                        fieldIds: [
                            'bevyt1y4xxhoojpq3sw8f7sty',
                            'lfj6izi97abq2mooaz6on5xv9',
                        ],
                        createdAt: now,
                    },
                    {
                        id: 'o9y40kx1cswrsbvpnqcjbjq3f',
                        name: 'status_check_result_pkey',
                        unique: true,
                        fieldIds: ['1xgnw2ml9ho5ebak2tjueljef'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 's5btmt2a3k5fbn5nivbotb63y',
                name: 'alert_plugin',
                schema: 'public',
                x: 911.0912703473989,
                y: 1009.619407771256,
                fields: [
                    {
                        id: '54ypudmdos0gh9zt45v4dlg44',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'nrlgbn2rc22iiqsylycpz3hqz',
                        name: 'title',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'fn4bepjnta313q6oirc0d49o7',
                        name: 'enabled',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '07brcfef8p9z45umqa31qd16m',
                        name: 'polumorphic_ctype',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'twy9qeflbgm3puilj4vplc5ze',
                        name: 'alert_plugin_pkey',
                        unique: true,
                        fieldIds: ['54ypudmdos0gh9zt45v4dlg44'],
                        createdAt: now,
                    },
                    {
                        id: '6dxfk6azl4bkvffup18er26pb',
                        name: 'alert_plugin_title_unique',
                        unique: true,
                        fieldIds: ['nrlgbn2rc22iiqsylycpz3hqz'],
                        createdAt: now,
                    },
                ],
                color: '#7175fa',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'snty6zszcj35lqom3xr5l1w9l',
                name: 'service',
                schema: 'public',
                x: 1711.091270347399,
                y: 1009.619407771256,
                fields: [
                    {
                        id: 'nlm46bzo6jaaq10dvqgmxkugb',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'tb1wf1z7p189oaao5xq4mxjay',
                        name: 'name',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'a7f3eyybm52i55ir3xmeyxknf',
                        name: 'alerts_enabled',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'qo29qqqg86f2q4pdsllczrwlw',
                        name: 'last_alert_sent',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'thubom65c0m2fv73h54lpqpuc',
                        name: 'email_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '5sqvqysig5h7s4r2vx6bajhg6',
                        name: 'hipchat_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'dhk00492pbzbaps1srv8bsa3f',
                        name: 'sms_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ainy01vnu7zggetwrr2co1qpg',
                        name: 'telephone_alert',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'cqbyoq7zcnxt9k7npyy1xr93f',
                        name: 'overall_status',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'funagoza5ak3mx7f6ayhh9ga5',
                        name: 'old_overall_status',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '1cmwrcod33fvr90uhntporj0a',
                        name: 'hackpad_id',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '55nlhf43trkj5oao5q8rr7jps',
                        name: 'runbook_link',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'cj93y2b3xzsfrz7jao9j14174',
                        name: 'url',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '8x3spwrmv8jess8bkdx7ynkkx',
                        name: 'alerts',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ebr6xvkab9wtd5a28jzpyzjvf',
                        name: 'instances',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ge7qik8ahl3n8sk7a8has1en5',
                        name: 'is_public',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'v1go1054dzsueo5dj1n0kay97',
                        name: 'service_pkey',
                        unique: true,
                        fieldIds: ['nlm46bzo6jaaq10dvqgmxkugb'],
                        createdAt: now,
                    },
                ],
                color: '#ff6b8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'sw5x2x57xh3f7pbdas1ngqcl2',
                name: 'user_profile',
                schema: 'public',
                x: 2111.0912703473987,
                y: 559.6194077712561,
                fields: [
                    {
                        id: 'aje7zj82cpxn68d3yrz7kidm4',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'akad3j3w1intr80wji4mr27m3',
                        name: 'mobile_number',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'gogrb86l7xdnmjskjpll9361r',
                        name: 'hipchat_alias',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '27rbdru8cv1izg8u9igxozbh9',
                        name: 'fallback_alert_user',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'di3phup16zvmxc368a2g7r01k',
                        name: 'user_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'n0055y9i8biltiu789b166njk',
                        name: 'user_profile_pkey',
                        unique: true,
                        fieldIds: ['aje7zj82cpxn68d3yrz7kidm4'],
                        createdAt: now,
                    },
                ],
                color: '#ffe374',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'xgbea63bte2hpv60z8pldw43a',
                name: 'service_status_snapshot',
                schema: 'public',
                x: 1311.091270347399,
                y: 559.6194077712561,
                fields: [
                    {
                        id: 'jxpfsv0jsj00ft5ah03rzzuzr',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'eai0ljiapn6buhwrjb9krw9g5',
                        name: 'time',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'mph3ml501y0ws89772fvgnhx2',
                        name: 'num_checks_active',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '3fg16dd4zumip7acn7kmehxnj',
                        name: 'num_checks_passing',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'qqdvjimxj1jzpaugsj7dphz6i',
                        name: 'num_checks_failing',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '0jhtzfcu43sccn2vt26iyk5x1',
                        name: 'overall_status',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'y7yokk40m31ezrmr4xour0azq',
                        name: 'did_send_alert',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '6yhlh8spgs0q7bbmqhoyntzrx',
                        name: 'service_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '0ducwrg7ntryolsbehc17kwmf',
                        name: 'service_status_snapshot_pkey',
                        unique: true,
                        fieldIds: ['jxpfsv0jsj00ft5ah03rzzuzr'],
                        createdAt: now,
                    },
                ],
                color: '#ff6363',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'yimq43j0fcwgehlt8rzbx7fkp',
                name: 'http_status_check',
                schema: 'public',
                x: 488.90872965260115,
                y: 559.6194077712559,
                fields: [
                    {
                        id: 'sy3351o5ihnwtwj37wkctcr05',
                        name: 'statuscheck_ptr_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '93f9sh7nwyeg9kr1la1fivjxl',
                        name: 'endpoint',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'd6wdbnshnibzupitcj2c78nn2',
                        name: 'username',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'uhly8fn4dm48irbas9vqvv42s',
                        name: 'password',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'ywxd4nu0yy0ljz17je8fwokyu',
                        name: 'text_match',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'f58dg55vj0qkp1fnbtpkrji0v',
                        name: 'status_code',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'm7m78h658plv0qo0zzgorfcpw',
                        name: 'timeout',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'kalcno5ni4ecna2c99jjta04j',
                        name: 'verify_ssl_certificate',
                        type: {
                            id: 'boolean',
                            name: 'boolean',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'f8kisxgmammk5rsqtbxw0oabi',
                        name: 'http_status_check_pkey',
                        unique: true,
                        fieldIds: ['sy3351o5ihnwtwj37wkctcr05'],
                        createdAt: now,
                    },
                ],
                color: '#42e0c0',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
        ],
        relationships: [
            {
                id: '0r3ir958u6wypga8bzeub902r',
                name: 'instance_status_snapshot_instance_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '289m0pav8pj7g7tfvu4uf1p6n',
                targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
                sourceFieldId: 'v8s1vno4mwfm7ihefn0tyk64i',
                targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '0vumrls4g0p90vt5uajxh7tf1',
                name: 'service_status_check_service_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '2g5a37ob099bhsuieq9ab929o',
                targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
                sourceFieldId: 'd01n6izgorbu9uvstne0y3u1x',
                targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '1bsdknrof46s6pz0snfzresvq',
                name: 'status_check_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                targetTableId: 'ihd99d2agwucv4szocruel4il',
                sourceFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                targetFieldId: 'o5m53rxstoj07ot5lxkgki8ur',
                sourceCardinality: 'one',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '2j1xxy9ddm7h5xopb2cjhgr62',
                name: 'alert_plugin_instance_instance_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'adepxg04z9rk1yxale4m0pu8z',
                targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
                sourceFieldId: 'ojgqs3fbjexpre4yazvztuals',
                targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '2uya9mus02ppn6jt2zuyvz5zy',
                name: 'alert_plugin_service_service_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'acyynxu05uajz4kegsv252ph9',
                targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
                sourceFieldId: 'j3i65nsbpfp9u45tmg4jmp6pc',
                targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '33xy4g6uhclcdoe8xc68vmw19',
                name: 'instance_service_instance_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'k9nq8pb1s0vtvi676huizdeac',
                targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
                sourceFieldId: 'ho6gwfsp2h9o402atokdi14bn',
                targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '3td9qy14l8mb5z33lrrlj5dcl',
                name: 'service_user_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'h5qj5g52zspl2tszk24110nev',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: 'nvatz1cfhk8kopcpeahp1zkh5',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '402hqz0da264q3ikobnvjrka3',
                name: 'alert_acknowledgement_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'p16q7p1q8j9p3ud529lwtrss7',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: '3y3lumb16v7asidckv27lqzhc',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '4nv6halyuy5ez47d10at5o3v0',
                name: 'alert_plugin_service_alert_plugin_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'acyynxu05uajz4kegsv252ph9',
                targetTableId: 's5btmt2a3k5fbn5nivbotb63y',
                sourceFieldId: 'g3cs00ub96ophp4zk2wxy8wdx',
                targetFieldId: '54ypudmdos0gh9zt45v4dlg44',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '55dy81mrmr2tenctrnnf67a9n',
                name: 'user_profile_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'sw5x2x57xh3f7pbdas1ngqcl2',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: 'di3phup16zvmxc368a2g7r01k',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '5nc8bc22ijhzjz52ofnjrb6u0',
                name: 'shift_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'qb1s1uv828fkercy98l9aqm0n',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: 'ojz1lp63052z0xhorqorl9xtv',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '6f5gn0q8n9vvpmyox0lymg87h',
                name: 'jenkins_status_check_jenkins_config_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'ihd99d2agwucv4szocruel4il',
                targetTableId: 'gwgd7y6e3gvkwlxcnbzvorgh1',
                sourceFieldId: '3smw558f4t2azn6fz3ixhrdjt',
                targetFieldId: 'b14pj3k6c2e6al6vki0b1elca',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '7ccy5968fnta1ykrc3ad0kbmv',
                name: 'service_user_service_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'h5qj5g52zspl2tszk24110nev',
                targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
                sourceFieldId: 'stzg5a3ltgiybqhyu68vzgkp3',
                targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '7y6qzxa0kwpbuxyxj6stp4cdn',
                name: 'service_status_check_status_check_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '2g5a37ob099bhsuieq9ab929o',
                targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                sourceFieldId: 'dth8p4sc3de0ejikckptooqc9',
                targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'eunzidbn3wbtm3w8eila85lpl',
                name: 'alert_plugin_instance_alert_plugin_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'adepxg04z9rk1yxale4m0pu8z',
                targetTableId: 's5btmt2a3k5fbn5nivbotb63y',
                sourceFieldId: 'uby6hrs70gtws67wwthlaz1if',
                targetFieldId: '54ypudmdos0gh9zt45v4dlg44',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'fwrhr33pcsowp8vl7vnj3rfd4',
                name: 'graphite_status_check_statuscheck_ptr_id_fk',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'ovnwer9a3ie8kfv1h9rfdp278',
                targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                sourceFieldId: '96mgizk5xa787xkpensbr2dye',
                targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                sourceCardinality: 'one',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'ilq1g6xxcrqs9t3wrssxb6oeo',
                name: 'alert_acknowledgement_service_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'p16q7p1q8j9p3ud529lwtrss7',
                targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
                sourceFieldId: 'rc55akr0tj6sf7jubuo5p70l7',
                targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'ml97mydp58p2gp99cnvt2fs3x',
                name: 'alert_acknowledgement_cancelled_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'p16q7p1q8j9p3ud529lwtrss7',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: 'j4tmnkco7uhsnpfcfwzz4crbg',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'mp7sd2vr6kviku8je4v0gitit',
                name: 'instance_service_service_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'k9nq8pb1s0vtvi676huizdeac',
                targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
                sourceFieldId: '39rolyh0m57c3caizwnod8j1n',
                targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'nd86cd2ul5mafn30l401mbmu5',
                name: 'icmp_status_check_statuscheck_ptr_id_fk',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'dkxb5j0xwpxd7m8sld626yikf',
                targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                sourceFieldId: 'soe2o9gdqveztta1wmbjmr59t',
                targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                sourceCardinality: 'one',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'nynmn81ctitgf5ev89vrviub5',
                name: 'instance_users_instance_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'm2n2pgaz6i329c06oreesemhj',
                targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
                sourceFieldId: 'dnlp6rac6kxsrqat8sg1fflmo',
                targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'o3soaflcj89drxef42p2ad9pl',
                name: 'instance_status_check_instance_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '2ghbyz6qz80jg3clggsq2fwy9',
                targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
                sourceFieldId: 'apcysjrim5wq83p8vx0tsgwxh',
                targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'q6nu6q2dzadpyy2bh3ic4b5zw',
                name: 'status_check_result_status_check_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'r99f8hhi0dlvoyj64vweu0ba6',
                targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                sourceFieldId: 'bevyt1y4xxhoojpq3sw8f7sty',
                targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'quc8uhh3mbic9y1bvre6ocmhd',
                name: 'alert_plugin_user_data_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'erpxfyf9b0nn0b8ruuezd7nnt',
                targetTableId: 'sw5x2x57xh3f7pbdas1ngqcl2',
                sourceFieldId: 'o0c93op0gwm4piux9j5ucdnuy',
                targetFieldId: 'aje7zj82cpxn68d3yrz7kidm4',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'r7okcqvz32jta8p2t2r5lpk96',
                name: 'service_status_snapshot_service_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'xgbea63bte2hpv60z8pldw43a',
                targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
                sourceFieldId: '6yhlh8spgs0q7bbmqhoyntzrx',
                targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'rb1mlvgujn3kp0k4klvzk670p',
                name: 'http_status_check_statuscheck_ptr_id_fk',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'yimq43j0fcwgehlt8rzbx7fkp',
                targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                sourceFieldId: 'sy3351o5ihnwtwj37wkctcr05',
                targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                sourceCardinality: 'one',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'sq3l1tareyohngl38qdgs4dn3',
                name: 'status_check_created_by_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: '0fkna6qy8yr3zbfr8rr44dogu',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'upd17z1nugn0d1xmudd5za3jy',
                name: 'instance_users_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'm2n2pgaz6i329c06oreesemhj',
                targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
                sourceFieldId: 'uf8obr3vrnue7ogg8xyuly3li',
                targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'x3fnbhrr6ro547sjw0zaghaow',
                name: 'instance_status_check_status_check_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '2ghbyz6qz80jg3clggsq2fwy9',
                targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
                sourceFieldId: '7titj5v9ih6rgj9gwy0suaojd',
                targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
        ],
        dependencies: [],
    },
};