Skip to content

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

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

const now = Date.now();

export const hackerNewsDb: Template = {
    slug: 'hacker-news-database',
    name: 'Pythonic News',
    shortDescription: 'A Hacker News lookalike',
    description: 'written in Python/Django. Platform - https://news.python.sc',
    image,
    imageDark,
    tags: ['Postgres', 'Python', 'Django'],
    featured: false,
    url: 'https://github.com/sebst/pythonic-news',
    diagram: {
        id: 'pythonic_news_db',
        name: 'pythonic-news-database',
        createdAt: new Date(),
        updatedAt: new Date(),
        databaseType: DatabaseType.POSTGRESQL,
        tables: [
            {
                id: '4r30mjer61qetdcubllpgvtnp',
                name: 'emaildigest_unsubscription',
                schema: 'public',
                x: -558.4875339477687,
                y: 1612.0057200236154,
                fields: [
                    {
                        id: 'civnu3uqjodwfcgsrqlg86rjm',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'f8wvaf941utaupusz6n9bwn4r',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '370zc7xdovmpfwenzup8tsrzq',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'irpmysxs41unttoq8hc9p1bne',
                        name: 'from_digest_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'nd0zshvc0pe50mx0hy4d9ujfy',
                        name: 'subscription_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'v05cbxcfchmgsimole5uihdxj',
                        name: 'emaildigest_unsubscription_pkey',
                        unique: true,
                        fieldIds: ['civnu3uqjodwfcgsrqlg86rjm'],
                        createdAt: now,
                    },
                    {
                        id: 'wrorfw2rej8jk7id96kz6nxoz',
                        name: 'emaildigest_unsubscription_subscription_id_index',
                        unique: false,
                        fieldIds: ['nd0zshvc0pe50mx0hy4d9ujfy'],
                        createdAt: now,
                    },
                    {
                        id: 'w7p7ro8laetanj8obo2rfsip6',
                        name: 'emaildigest_unsubscription_from_digest_id_index',
                        unique: false,
                        fieldIds: ['irpmysxs41unttoq8hc9p1bne'],
                        createdAt: now,
                    },
                ],
                color: '#b067e9',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '5by7ufdjxc2q77rob07wq4rtv',
                name: 'news_vote',
                schema: 'public',
                x: 116.16600520075457,
                y: 554.8159976772592,
                fields: [
                    {
                        id: 'ggulh079eq68ypew29nlmed0j',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'l9vrb9nidsafsdp0ymplv5v3l',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '7st60b69dxcvv6o2xekikemdr',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'v78vdsjfh69p96x1d0cqfmz6k',
                        name: 'item_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '7otkg1lumjegx14fm1vc12btd',
                        name: 'user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '16gkaz8tjy3zkn0t93dd7lclz',
                        name: 'vote',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '7cm76ncwwhg221qmuz1f5irxl',
                        name: 'news_vote_user_id_index',
                        unique: false,
                        fieldIds: ['7otkg1lumjegx14fm1vc12btd'],
                        createdAt: now,
                    },
                    {
                        id: '59l2m45nur511dr74vqsec7e7',
                        name: 'news_vote_item_id_index',
                        unique: false,
                        fieldIds: ['v78vdsjfh69p96x1d0cqfmz6k'],
                        createdAt: now,
                    },
                    {
                        id: '71n1mo5369p3chqkykpyzbjze',
                        name: 'news_vote_pkey',
                        unique: true,
                        fieldIds: ['ggulh079eq68ypew29nlmed0j'],
                        createdAt: now,
                    },
                ],
                color: '#ff6363',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '67f6pc9x0uyyjmwhsc09z86b5',
                name: 'emaildigest_emaildigest_stories',
                schema: 'public',
                x: -714.8178902216268,
                y: 1233.9593691791317,
                fields: [
                    {
                        id: 'rwrs07lunbmjuur50l5a0cwv6',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'cktumifnf94p01uysb31ajgkv',
                        name: 'emaildigest_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'e6vn3jujiovfqpku1gz5d48rc',
                        name: 'story_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '25rtf6vn60gthu6l55vsb6169',
                        name: 'emaildigest_emaildigest_stories_emaildigest_id_story_id_unique',
                        unique: true,
                        fieldIds: [
                            'cktumifnf94p01uysb31ajgkv',
                            'e6vn3jujiovfqpku1gz5d48rc',
                        ],
                        createdAt: now,
                    },
                    {
                        id: '71ttknypjve53mvffi8lnhx4b',
                        name: 'emaildigest_emaildigest_stories_pkey',
                        unique: true,
                        fieldIds: ['rwrs07lunbmjuur50l5a0cwv6'],
                        createdAt: now,
                    },
                    {
                        id: '2etnxi24v6c681fuav6zv221u',
                        name: 'emaildigest_emaildigest_stories_story_id_index',
                        unique: false,
                        fieldIds: ['e6vn3jujiovfqpku1gz5d48rc'],
                        createdAt: now,
                    },
                ],
                color: '#42e0c0',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '7e1ap4huegjpqdau4l3l80tkx',
                name: 'emaildigest_usersubscription',
                schema: 'public',
                x: -611.944293578114,
                y: 477.8747871771292,
                fields: [
                    {
                        id: '0tc7z6xlpld67ebx71sf16vw7',
                        name: 'subscription_ptr_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '7nuxpce5zjow6sapz7egpymzo',
                        name: 'user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'g0x08lks32n2ra1lpgjqounmu',
                        name: 'emaildigest_usersubscription_user_id_index',
                        unique: false,
                        fieldIds: ['7nuxpce5zjow6sapz7egpymzo'],
                        createdAt: now,
                    },
                    {
                        id: 'z2yyr3c5p0zwkp2rtrjvny563',
                        name: 'emaildigest_usersubscription_pkey',
                        unique: true,
                        fieldIds: ['0tc7z6xlpld67ebx71sf16vw7'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '91f7xxj9ez3r2lqln6ypwl7yx',
                name: 'django_session',
                schema: 'public',
                x: -203.31419555112996,
                y: 950.0392606874932,
                fields: [
                    {
                        id: '7nz52qyzqwp0ys983k5brnd5k',
                        name: 'session_key',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'x017gqk82hwv1uxmrmmxy9629',
                        name: 'session_data',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ysvxd1qjhpxf0qq0sareo2lu8',
                        name: 'expire_date',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'o0esv86hkonmb1anq56yvhret',
                        name: 'django_session_expire_date_index',
                        unique: false,
                        fieldIds: ['ysvxd1qjhpxf0qq0sareo2lu8'],
                        createdAt: now,
                    },
                    {
                        id: '4nikn1xalqo58r9zhexv0v9rv',
                        name: 'django_session_pkey',
                        unique: true,
                        fieldIds: ['7nz52qyzqwp0ys983k5brnd5k'],
                        createdAt: now,
                    },
                ],
                color: '#8eb7ff',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: '9hn3pgkwfddnv17sq0q8gtsag',
                name: 'emaildigest_anonymoussubscription',
                schema: 'public',
                x: 562.6486135437822,
                y: 1425.0150518639784,
                fields: [
                    {
                        id: 'p5inc2slgnhk2nh7ulh0s4jqc',
                        name: 'subscription_ptr_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hmnux8w8u6wskbj3y1k74n364',
                        name: 'email',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'gylocas02c1dpyat3yfh1nkhw',
                        name: 'verified',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'x00z8zx2vypbb28xooszb9wkc',
                        name: 'verified_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '135z53mpwsik1mnuji5eyquzd',
                        name: 'verification_code',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 't3bjnl79csa6arwa4uq9iebso',
                        name: 'logged_in_user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'lvonx30lro9odb8dwu6lt21ch',
                        name: 'emaildigest_anonymoussubscription_logged_in_user_id_index',
                        unique: false,
                        fieldIds: ['t3bjnl79csa6arwa4uq9iebso'],
                        createdAt: now,
                    },
                    {
                        id: 'w1yw7fyf1pmkafn6nfytaqy6w',
                        name: 'emaildigest_anonymoussubscription_pkey',
                        unique: true,
                        fieldIds: ['p5inc2slgnhk2nh7ulh0s4jqc'],
                        createdAt: now,
                    },
                ],
                color: '#ff9f74',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'afg1f12jkr6r28fvmti3nmmum',
                name: 'accounts_emailverification',
                schema: 'public',
                x: -256.925935309314,
                y: 594.9107209404664,
                fields: [
                    {
                        id: '6jt4p93tfzuce9zyvcatkc3gf',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'acweox8fjd2ipk4c52jv2k13x',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'h1a9frbnos4tnv398s7r5guaz',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'zx9qeo3cnoz0fhifwj1mn7tsq',
                        name: 'verified',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '6p00wmje57nfbz831m9yarf4v',
                        name: 'verified_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'an65epq4eo2ani1n3op1nhph0',
                        name: 'email',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'mcgdffj2wltvrot9jkjinh9yo',
                        name: 'user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '0usutqvw6lh558h0gplynj2at',
                        name: 'verification_code',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'a25mwf1g308u7a9w25i71p8du',
                        name: 'accounts_emailverification_pkey',
                        unique: true,
                        fieldIds: ['6jt4p93tfzuce9zyvcatkc3gf'],
                        createdAt: now,
                    },
                    {
                        id: 'z2irpierd2gdu1jmhj5vqy5xl',
                        name: 'accounts_emailverification_user_id_index',
                        unique: false,
                        fieldIds: ['mcgdffj2wltvrot9jkjinh9yo'],
                        createdAt: now,
                    },
                ],
                color: '#ff6363',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'ajoz1epyky9jtg1wliayl82m4',
                name: 'news_comment',
                schema: 'public',
                x: 89.46549849308553,
                y: 1461.6001825908638,
                fields: [
                    {
                        id: '5wijgjk66fnul2ajxludgzi1s',
                        name: 'item_ptr_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hjc29a13ggem7yobewwrbvx3a',
                        name: 'text',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '5e6oabu2eurmvlfa1e6za7bpc',
                        name: 'to_story_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '7li39t1zm0v02auic3yzc1usj',
                        name: 'news_comment_to_story_id_index',
                        unique: false,
                        fieldIds: ['5e6oabu2eurmvlfa1e6za7bpc'],
                        createdAt: now,
                    },
                    {
                        id: 'z80zr4k4euz80p89hzc4xnvmr',
                        name: 'news_comment_pkey',
                        unique: true,
                        fieldIds: ['5wijgjk66fnul2ajxludgzi1s'],
                        createdAt: now,
                    },
                ],
                color: '#b067e9',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'eq1zlyk8ggtcawt0jz3bsol5i',
                name: 'accounts_passwordresetrequest',
                schema: 'public',
                x: -283.79718944579895,
                y: 90.86627842071485,
                fields: [
                    {
                        id: 'hykyf9kv9y9elpmfa8hgbc8m3',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '1y0xasrdon361rnf080wbl9jf',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'nifhpoyyj34mmbxnbxxoib3nv',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'vplvxs6cq28kyivy5vtb6091d',
                        name: 'verification_code',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'q3sx6ty1nda73ommua0qipkz5',
                        name: 'user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'zysum2rc1jvhwo9ciieruj02f',
                        name: 'accounts_passwordresetrequest_user_id_index',
                        unique: false,
                        fieldIds: ['q3sx6ty1nda73ommua0qipkz5'],
                        createdAt: now,
                    },
                    {
                        id: '3z33wnlpwh903daa2e3gbf5bp',
                        name: 'accounts_passwordresetrequest_pkey',
                        unique: true,
                        fieldIds: ['hykyf9kv9y9elpmfa8hgbc8m3'],
                        createdAt: now,
                    },
                ],
                color: '#c05dcf',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'ew2veiwmyff5bi2tz6ask1unb',
                name: 'django_content_type',
                schema: 'public',
                x: 1208.059119828431,
                y: 321.22435559951066,
                fields: [
                    {
                        id: 'gb9snc1ysqjx5udv19o9ciri1',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'awgla0d9enrsuqv9wtoifesz8',
                        name: 'app_label',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'mrzrpv19qyyk2p5szuz4pd53w',
                        name: 'model',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'ag5ds3nvkzn6afyzlxz77tje6',
                        name: 'django_content_type_app_label_model_unique',
                        unique: true,
                        fieldIds: [
                            'awgla0d9enrsuqv9wtoifesz8',
                            'mrzrpv19qyyk2p5szuz4pd53w',
                        ],
                        createdAt: now,
                    },
                    {
                        id: '0no6lh5b6dccg8i4ar6gxika5',
                        name: 'django_content_type_pkey',
                        unique: true,
                        fieldIds: ['gb9snc1ysqjx5udv19o9ciri1'],
                        createdAt: now,
                    },
                ],
                color: '#ff6b8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'fj13bit1sskhfzqn6vyveka71',
                name: 'emaildigest_emaildigest',
                schema: 'public',
                x: -951.2467268247397,
                y: 1502.250327842959,
                fields: [
                    {
                        id: 'e9mq1usut3gdrnhdn61ax9pjv',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ltg2ajwdwa2uo787mce215382',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 's2j5l4fgzkhykeh39rkjb4xcm',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hrbr23lm936wwiuifj64fuqzy',
                        name: 'frequency',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '3x6foy8d5i8ueaewfbbe0k28f',
                        name: 'weekly_weekday',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'vscyplc570cclg9zhie2gi2pa',
                        name: 'emaildigest_emaildigest_pkey',
                        unique: true,
                        fieldIds: ['e9mq1usut3gdrnhdn61ax9pjv'],
                        createdAt: now,
                    },
                ],
                color: '#4dee8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'hj2bexl6a27ghf8k9wiv8l12m',
                name: 'auth_permission',
                schema: 'public',
                x: 906.0270189867952,
                y: 659.3716204364447,
                fields: [
                    {
                        id: 'lywozozq8nia6swlrruargobg',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'chixcyda9jktjzcbm5spib3wg',
                        name: 'name',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'yhnlxws88q3wmku6pvicgu0zh',
                        name: 'content_type_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '05qmngq62whue47kr9m815ix0',
                        name: 'codename',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'yctf18ygvvbjcnrfzpjr3kloz',
                        name: 'auth_permission_content_type_id_codename_unique',
                        unique: true,
                        fieldIds: [
                            'yhnlxws88q3wmku6pvicgu0zh',
                            '05qmngq62whue47kr9m815ix0',
                        ],
                        createdAt: now,
                    },
                    {
                        id: '10xwrl39gv53bbox8ydynb64q',
                        name: 'auth_permission_pkey',
                        unique: true,
                        fieldIds: ['lywozozq8nia6swlrruargobg'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'mh1h5ntv55nfxt4s1u6ios9he',
                name: 'news_story',
                schema: 'public',
                x: -286.95227582192933,
                y: 1242.0893982295509,
                fields: [
                    {
                        id: 'igrc5orm9boi81gc8iit1dzcm',
                        name: 'item_ptr_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ysh9yxlypzsr9k8ctj7tqfxg3',
                        name: 'url',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '452vu35lvkicq1nfm0pfdgqm1',
                        name: 'text',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'o8kgqsiz79td43nbxtabova9y',
                        name: 'title',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'imkqmd19m4bi1yqvhfkce56df',
                        name: 'duplicate_of_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '1izfx2k24srboq2gxsot55by5',
                        name: 'domain',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'c76wn9ex5xvz4qn7bhmd689nw',
                        name: 'news_story_duplicate_of_id_domain_index',
                        unique: false,
                        fieldIds: [
                            'imkqmd19m4bi1yqvhfkce56df',
                            '1izfx2k24srboq2gxsot55by5',
                        ],
                        createdAt: now,
                    },
                    {
                        id: '4gwirn4y2rwpk15exw5t3cskp',
                        name: 'news_story_pkey',
                        unique: true,
                        fieldIds: ['igrc5orm9boi81gc8iit1dzcm'],
                        createdAt: now,
                    },
                    {
                        id: 'bocqxrc67eijswdpl8csjk4eq',
                        name: 'news_story_duplicate_of_id_index',
                        unique: false,
                        fieldIds: ['imkqmd19m4bi1yqvhfkce56df'],
                        createdAt: now,
                    },
                    {
                        id: 't53vmipidxrltefpfn5oe8h21',
                        name: 'news_story_domain_index',
                        unique: false,
                        fieldIds: ['1izfx2k24srboq2gxsot55by5'],
                        createdAt: now,
                    },
                ],
                color: '#ffe374',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'n2icqo5m7ii7vslxgltboicqb',
                name: 'emaildigest_subscription',
                schema: 'public',
                x: -121.90240322088357,
                y: 1685.1759814773866,
                fields: [
                    {
                        id: 'upjfup67uacxrty1dplvwm1sp',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '9lrqy9hgrsybaz18xi1h4u367',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '1e6pnbas6z3knvaj4or2q6es0',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'uc0ei3vewi9it0my2dtscobop',
                        name: 'frequency',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '8coidlp1uk3gcltphy4k2iueq',
                        name: 'weekly_weekday',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '1lf4avbf8cj92w7rv3n4jkpa7',
                        name: 'verfied_email',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '5t9m3za62tqojl62x1nyuoo15',
                        name: 'is_active',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'mfdvbltasffqy4ltc6gb0bky0',
                        name: 'emaildigest_subscription_pkey',
                        unique: true,
                        fieldIds: ['upjfup67uacxrty1dplvwm1sp'],
                        createdAt: now,
                    },
                ],
                color: '#8eb7ff',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'ofqvhz8puoxyyh09oweayiw88',
                name: 'news_item',
                schema: 'public',
                x: 91.90193648882615,
                y: 979.0800663891878,
                fields: [
                    {
                        id: 'dvmwsbmclafso0iqsjpwrgn4f',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'r7xvbts8zzhagihr6wcg33e37',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'q4qon781fl4syo2leiym4rtkh',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '9b3dmpspwrs3chejn4s7ry58k',
                        name: 'upvotes',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'pszs49njemyhez7wr9s4svkvg',
                        name: 'downvotes',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'w23bko45wu2eau4bc39sles9j',
                        name: 'points',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '1sfixd05jfisx2e9jl0u6qatb',
                        name: 'num_comments',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'sgs6gcd4qspyslo0gqt9sg2zb',
                        name: 'lft',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'sbdd23wsa7wbqwlogrhaui8ya',
                        name: 'rght',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'gbw664a289jorcz21h1pobbik',
                        name: 'tree_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '876fk98kb2nporo0fvessb0ts',
                        name: 'level',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'm3abfwridybrigh775bq0kxdj',
                        name: 'parent_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'jzofaf88bcg4h519xrsq0c7nj',
                        name: 'user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '2b7camo7rqo5qao6u4byb0voq',
                        name: 'is_ask',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ctu3q7cuy3xvl6kvgz8v7cenv',
                        name: 'is_show',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'zfluu09qj7zdyy9k4i2f5hcdn',
                        name: 'news_item_pkey',
                        unique: true,
                        fieldIds: ['dvmwsbmclafso0iqsjpwrgn4f'],
                        createdAt: now,
                    },
                    {
                        id: 'p7vw95gqibi349k1a0qu9jloz',
                        name: 'news_item_created_at_points_index',
                        unique: false,
                        fieldIds: [
                            'r7xvbts8zzhagihr6wcg33e37',
                            'w23bko45wu2eau4bc39sles9j',
                        ],
                        createdAt: now,
                    },
                    {
                        id: '5gmho1hnuo6zjbb37u014sr1f',
                        name: 'news_item_parent_id_index',
                        unique: false,
                        fieldIds: ['m3abfwridybrigh775bq0kxdj'],
                        createdAt: now,
                    },
                    {
                        id: 'aspsa9sbq66t9o3ftrzxyy7jr',
                        name: 'news_item_id_created_at_index',
                        unique: false,
                        fieldIds: [
                            'dvmwsbmclafso0iqsjpwrgn4f',
                            'r7xvbts8zzhagihr6wcg33e37',
                        ],
                        createdAt: now,
                    },
                    {
                        id: 'ctmcs6v4ezw8fvz165rl08ezf',
                        name: 'news_item_tree_id_index',
                        unique: false,
                        fieldIds: ['gbw664a289jorcz21h1pobbik'],
                        createdAt: now,
                    },
                    {
                        id: 'dj96a23euyxa319zfjyiuazy3',
                        name: 'news_item_user_id_index',
                        unique: false,
                        fieldIds: ['jzofaf88bcg4h519xrsq0c7nj'],
                        createdAt: now,
                    },
                ],
                color: '#ffe374',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'pqnp5obu471t7nksmopphd7nc',
                name: 'accounts_invitation',
                schema: 'public',
                x: 487.3589807537594,
                y: -1.128153969924142,
                fields: [
                    {
                        id: '740mvsq8f58osmihmj5e649wg',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '386090l8qybipw9e72m9kh4bm',
                        name: 'created_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'elrly59z585yjo4fc4njd3k1r',
                        name: 'changed_at',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '39umm5tgmq816lasu5sxm2n6r',
                        name: 'num_signups',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'hcjklrjki708jnv76q621fa4i',
                        name: 'invited_email_address',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'yeq4xbcd5fj76tp3go1wposbb',
                        name: 'invite_code',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'kadleryxytclz1u05h2dix71r',
                        name: 'inviting_user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'ef0gg4kpkhjtx92jy6avsslgp',
                        name: 'accounts_invitation_pkey',
                        unique: true,
                        fieldIds: ['740mvsq8f58osmihmj5e649wg'],
                        createdAt: now,
                    },
                    {
                        id: 'cx6m6sey4c6t6iyzc6z39yxdq',
                        name: 'accounts_invitation_inviting_user_id_index',
                        unique: false,
                        fieldIds: ['kadleryxytclz1u05h2dix71r'],
                        createdAt: now,
                    },
                ],
                color: '#7175fa',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'qey85j4r4vmwhte8r9wimsz8k',
                name: 'auth_group',
                schema: 'public',
                x: 910.0912206700673,
                y: 1161.909928182987,
                fields: [
                    {
                        id: '3uc872q2eah73cmfok4m2nha4',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ub1g4pxwmqfazvtg9aax83zzs',
                        name: 'name',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '0xz4y48mexrnrqble416ftqwf',
                        name: 'auth_group_pkey',
                        unique: true,
                        fieldIds: ['3uc872q2eah73cmfok4m2nha4'],
                        createdAt: now,
                    },
                    {
                        id: 'x54ihm3d4gd8qnn6awq3ycx7l',
                        name: 'auth_group_name_unique',
                        unique: true,
                        fieldIds: ['ub1g4pxwmqfazvtg9aax83zzs'],
                        createdAt: now,
                    },
                ],
                color: '#4dee8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'qg6no3tnfqchvkpet3y8aghl8',
                name: 'accounts_customuser_groups',
                schema: 'public',
                x: 583.232614011237,
                y: 1168.2304378061071,
                fields: [
                    {
                        id: '8ls51pmycg1wg7q9szrimp1tr',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'a1a825bk8lhktp8m76qsn4c4g',
                        name: 'customuser_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'm1dqtgv21q9vhe0adk8xrakpw',
                        name: 'group_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '6nkil8zj2a2x0i5vxc5ou4g9v',
                        name: 'accounts_customuser_groups_customuser_id_group_id_unique',
                        unique: true,
                        fieldIds: [
                            'a1a825bk8lhktp8m76qsn4c4g',
                            'm1dqtgv21q9vhe0adk8xrakpw',
                        ],
                        createdAt: now,
                    },
                    {
                        id: 'y0vs1o3hko5ra3s1jewn2pfw3',
                        name: 'accounts_customuser_groups_group_id_index',
                        unique: false,
                        fieldIds: ['m1dqtgv21q9vhe0adk8xrakpw'],
                        createdAt: now,
                    },
                    {
                        id: 'zv22ouwx1ek60ha9b1pk52s4v',
                        name: 'accounts_customuser_groups_pkey',
                        unique: true,
                        fieldIds: ['8ls51pmycg1wg7q9szrimp1tr'],
                        createdAt: now,
                    },
                ],
                color: '#9ef07a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 's4vhkwlxqb8cl580p2amlsyw4',
                name: 'accounts_customuser_user_permissions',
                schema: 'public',
                x: 582.8419360400142,
                y: 536.5804668286369,
                fields: [
                    {
                        id: 'bf6kb7mpujn262is2l58wg973',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '16fr1mio7jua8epe94eizgwxv',
                        name: 'customuser_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '9d73cxg805mo5dnlp4q38qglw',
                        name: 'permission_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'seuycu8vifrg97dwb35i4r6s2',
                        name: 'accounts_customuser_user_permissions_permission_id_index',
                        unique: false,
                        fieldIds: ['9d73cxg805mo5dnlp4q38qglw'],
                        createdAt: now,
                    },
                    {
                        id: 'x818zebgyrxde5adhmm6brhev',
                        name: 'accounts_customuser_user_permissions_customuser_id_permission_i',
                        unique: true,
                        fieldIds: [
                            '16fr1mio7jua8epe94eizgwxv',
                            '9d73cxg805mo5dnlp4q38qglw',
                        ],
                        createdAt: now,
                    },
                    {
                        id: 'ztpimd28e111cwccp8chga28z',
                        name: 'accounts_customuser_user_permissions_pkey',
                        unique: true,
                        fieldIds: ['bf6kb7mpujn262is2l58wg973'],
                        createdAt: now,
                    },
                ],
                color: '#ffe374',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'toanxl4hwa8legellcg0vyf08',
                name: 'django_migrations',
                schema: 'public',
                x: -603.31419555113,
                y: 950.0392606874932,
                fields: [
                    {
                        id: 'tuxggfrea0jw877pz3pn5gzhk',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'yuqj4vfpk5g3oja1kz55teftg',
                        name: 'app',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'mby4kc3eumf1985h65sg7yz3h',
                        name: 'name',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'kw6zi2bpewk1qpov3yiyhem7l',
                        name: 'applied',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: '8x5lltsw0q6ufva7o82ip7xzv',
                        name: 'django_migrations_pkey',
                        unique: true,
                        fieldIds: ['tuxggfrea0jw877pz3pn5gzhk'],
                        createdAt: now,
                    },
                ],
                color: '#8a61f5',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'uogpgkpokaqxphsyo9xa4rqni',
                name: 'accounts_customuser',
                schema: 'public',
                x: 100,
                y: 100,
                fields: [
                    {
                        id: 'qv9rck165os7hli2cn7asn7os',
                        name: 'password',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'm9ok171j0en76m8w47969bhvt',
                        name: 'last_login',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '3jkddzho08sdft3gxid8l8wcz',
                        name: 'is_superuser',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'nbay43ta5ah98869y9oxd1zsq',
                        name: 'username',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'y1cjryxdhky9pc8xb2oek5qna',
                        name: 'first_name',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '617zqexrd0t35ylbcgs7bd8xl',
                        name: 'last_name',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '8lmpxbw5vjxt9widnwi0s502l',
                        name: 'email',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'v8ko1ymxo8e4ns1bo5vqhtzzn',
                        name: 'is_staff',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'x7vnvrpnhcsr764b1pqi3nifo',
                        name: 'is_active',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'tgsvyt7n1f5yztw45shb43gqz',
                        name: 'date_joined',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'v2khilycncdnmj4i1fqmdmcae',
                        name: 'id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ig12jx0w89qns5mpbp9l1etuo',
                        name: 'karma',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ayak2nhxum7og666cwfg3vzca',
                        name: 'about',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ocn9e3wjdw70glvkl7frvif9a',
                        name: 'level',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'z9zwhbwmqoj5sgn4cznhy6q0m',
                        name: 'lft',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'pxcjqcpc4y7dk8bk5d4go7ixl',
                        name: 'parent_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'dk1391737q3muxfhkr8t5c2f9',
                        name: 'rght',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'mbnledg3h7pjq2d28ystxhzp8',
                        name: 'tree_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ihoqh48haisti4cjqibjl22cz',
                        name: 'used_invitation_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'sfwuavr24js1l3baero71vegy',
                        name: 'accounts_customuser_parent_id_index',
                        unique: false,
                        fieldIds: ['pxcjqcpc4y7dk8bk5d4go7ixl'],
                        createdAt: now,
                    },
                    {
                        id: '3mqsij9zh17qbvvfgi23e5uuu',
                        name: 'accounts_customuser_tree_id_index',
                        unique: false,
                        fieldIds: ['mbnledg3h7pjq2d28ystxhzp8'],
                        createdAt: now,
                    },
                    {
                        id: 'hiuiws2jfeg8jkbofqk1l9duy',
                        name: 'accounts_customuser_username_unique',
                        unique: true,
                        fieldIds: ['nbay43ta5ah98869y9oxd1zsq'],
                        createdAt: now,
                    },
                    {
                        id: '9g17xfopot08dwj5v5ekodpcj',
                        name: 'accounts_customuser_used_invitation_id_index',
                        unique: false,
                        fieldIds: ['ihoqh48haisti4cjqibjl22cz'],
                        createdAt: now,
                    },
                    {
                        id: 'svw9t92uq9lte6blvmcnlj9pg',
                        name: 'accounts_customuser_pkey',
                        unique: true,
                        fieldIds: ['v2khilycncdnmj4i1fqmdmcae'],
                        createdAt: now,
                    },
                ],
                color: '#ff6b8a',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'vwcy6rcl0g7djra51h3uys1co',
                name: 'auth_group_permissions',
                schema: 'public',
                x: 636.5014131324725,
                y: 953.3331106200183,
                fields: [
                    {
                        id: 'bhld0hh832gv616xtbs8kua2f',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'rcg2zts0j2zhvb3rzlhtlcwy1',
                        name: 'group_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'q3objily8g769soz3mmkcdedx',
                        name: 'permission_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'kuo5osalna4r15yjvbq64zh0h',
                        name: 'auth_group_permissions_group_id_permission_id_unique',
                        unique: true,
                        fieldIds: [
                            'rcg2zts0j2zhvb3rzlhtlcwy1',
                            'q3objily8g769soz3mmkcdedx',
                        ],
                        createdAt: now,
                    },
                    {
                        id: 'qpsjuue7tcx7vhm7u0joumm4e',
                        name: 'auth_group_permissions_permission_id_index',
                        unique: false,
                        fieldIds: ['q3objily8g769soz3mmkcdedx'],
                        createdAt: now,
                    },
                    {
                        id: 'ibftfn6oi1o9bsq5on7h311h7',
                        name: 'auth_group_permissions_pkey',
                        unique: true,
                        fieldIds: ['bhld0hh832gv616xtbs8kua2f'],
                        createdAt: now,
                    },
                ],
                color: '#7175fa',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
            {
                id: 'vzqx78izurt09rp4hp5d4kq7x',
                name: 'django_admin_log',
                schema: 'public',
                x: 878.0402583580417,
                y: 130.75419328988505,
                fields: [
                    {
                        id: '15q3qdcnglchj1qwma5qzxion',
                        name: 'id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: true,
                        unique: true,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hmgpj5zdeyoxval9d8yc5hwm2',
                        name: 'action_time',
                        type: {
                            id: 'timestamp_without_time_zone',
                            name: 'timestamp without time zone',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'rplif8qoe16b6iu924esftua0',
                        name: 'object_id',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: '54cqdka46j1jfpi1n4gp8b8or',
                        name: 'object_repr',
                        type: {
                            id: 'character_varying',
                            name: 'character varying',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'ad878ee542t4uq4oveh0mqxb2',
                        name: 'action_flag',
                        type: {
                            id: 'smallint',
                            name: 'smallint',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: 'hko3s4z783lkxss9kfj9siqep',
                        name: 'change_message',
                        type: {
                            id: 'text',
                            name: 'text',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                    {
                        id: '5vzm92wroez7l83rvth5ypwr1',
                        name: 'content_type_id',
                        type: {
                            id: 'integer',
                            name: 'integer',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: true,
                        createdAt: now,
                    },
                    {
                        id: 'cw6blljibjcfbct97qupq7d4y',
                        name: 'user_id',
                        type: {
                            id: 'character',
                            name: 'character',
                        },
                        primaryKey: false,
                        unique: false,
                        nullable: false,
                        createdAt: now,
                    },
                ],
                indexes: [
                    {
                        id: 'ilpwvlyq17wzzonwpkn1de29q',
                        name: 'django_admin_log_content_type_id_index',
                        unique: false,
                        fieldIds: ['5vzm92wroez7l83rvth5ypwr1'],
                        createdAt: now,
                    },
                    {
                        id: '6yb5i5229qgyen8hn0n0btm23',
                        name: 'django_admin_log_pkey',
                        unique: true,
                        fieldIds: ['15q3qdcnglchj1qwma5qzxion'],
                        createdAt: now,
                    },
                    {
                        id: 'xhb054gy7k6py4a711xdr51f4',
                        name: 'django_admin_log_user_id_index',
                        unique: false,
                        fieldIds: ['cw6blljibjcfbct97qupq7d4y'],
                        createdAt: now,
                    },
                ],
                color: '#ff6363',
                isView: false,
                isMaterializedView: false,
                createdAt: now,
            },
        ],
        relationships: [
            {
                id: '5175q4ybeb842atlv98jrows9',
                name: 'emaildigest_usersubscription_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '7e1ap4huegjpqdau4l3l80tkx',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: '7nuxpce5zjow6sapz7egpymzo',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '5y79hn1zretkw7i8h7ipptbwe',
                name: 'django_admin_log_content_type_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'vzqx78izurt09rp4hp5d4kq7x',
                targetTableId: 'ew2veiwmyff5bi2tz6ask1unb',
                sourceFieldId: '5vzm92wroez7l83rvth5ypwr1',
                targetFieldId: 'gb9snc1ysqjx5udv19o9ciri1',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '6ra6a97jlm0khofl1ywfbefim',
                name: 'emaildigest_emaildigest_stories_story_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '67f6pc9x0uyyjmwhsc09z86b5',
                targetTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
                sourceFieldId: 'e6vn3jujiovfqpku1gz5d48rc',
                targetFieldId: 'igrc5orm9boi81gc8iit1dzcm',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '77dsht0vxptxl83sf5bibs1z9',
                name: 'news_item_parent_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'ofqvhz8puoxyyh09oweayiw88',
                targetTableId: 'ofqvhz8puoxyyh09oweayiw88',
                sourceFieldId: 'm3abfwridybrigh775bq0kxdj',
                targetFieldId: 'dvmwsbmclafso0iqsjpwrgn4f',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '7gyiz4r4pibfpxr4uci6vrqzs',
                name: 'news_comment_to_story_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'ajoz1epyky9jtg1wliayl82m4',
                targetTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
                sourceFieldId: '5e6oabu2eurmvlfa1e6za7bpc',
                targetFieldId: 'igrc5orm9boi81gc8iit1dzcm',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '7rzsabkoemft5nw6vjkudke1g',
                name: 'news_item_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'ofqvhz8puoxyyh09oweayiw88',
                targetTableId: 'ajoz1epyky9jtg1wliayl82m4',
                sourceFieldId: 'dvmwsbmclafso0iqsjpwrgn4f',
                targetFieldId: '5wijgjk66fnul2ajxludgzi1s',
                sourceCardinality: 'one',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: '8ppmvs6xqgju3c64uar8sjavk',
                name: 'accounts_customuser_groups_customuser_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'qg6no3tnfqchvkpet3y8aghl8',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'a1a825bk8lhktp8m76qsn4c4g',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'a9ngkvwzx0secviq5zbfakmss',
                name: 'accounts_customuser_parent_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'pxcjqcpc4y7dk8bk5d4go7ixl',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'ca4e80lutdv0d78c0ptlc3439',
                name: 'django_admin_log_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'vzqx78izurt09rp4hp5d4kq7x',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'cw6blljibjcfbct97qupq7d4y',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'csygii52uhx42xwll1vv6xhy3',
                name: 'accounts_customuser_used_invitation_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                targetTableId: 'pqnp5obu471t7nksmopphd7nc',
                sourceFieldId: 'ihoqh48haisti4cjqibjl22cz',
                targetFieldId: '740mvsq8f58osmihmj5e649wg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'e14s4td4ftlcodmu2iy2fa9i6',
                name: 'emaildigest_anonymoussubscription_logged_in_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '9hn3pgkwfddnv17sq0q8gtsag',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 't3bjnl79csa6arwa4uq9iebso',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'e8mysaz4folexvbql9cdm2owh',
                name: 'accounts_passwordresetrequest_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'eq1zlyk8ggtcawt0jz3bsol5i',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'q3sx6ty1nda73ommua0qipkz5',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'gnin4aowoj9pbpw9mi2utdddn',
                name: 'accounts_emailverification_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'afg1f12jkr6r28fvmti3nmmum',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'mcgdffj2wltvrot9jkjinh9yo',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'gtdvdkvnt86f3if1rg273fp5w',
                name: 'accounts_invitation_inviting_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'pqnp5obu471t7nksmopphd7nc',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'kadleryxytclz1u05h2dix71r',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'hlrikpj6kweb9rogahyc9p1ke',
                name: 'news_vote_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '5by7ufdjxc2q77rob07wq4rtv',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: '7otkg1lumjegx14fm1vc12btd',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'i826yd7ybvxlhxuy5cmnn2q29',
                name: 'news_story_duplicate_of_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
                targetTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
                sourceFieldId: 'imkqmd19m4bi1yqvhfkce56df',
                targetFieldId: 'igrc5orm9boi81gc8iit1dzcm',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'iafr2bf5bieu3ly99sobdls85',
                name: 'auth_group_permissions_permission_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'vwcy6rcl0g7djra51h3uys1co',
                targetTableId: 'hj2bexl6a27ghf8k9wiv8l12m',
                sourceFieldId: 'q3objily8g769soz3mmkcdedx',
                targetFieldId: 'lywozozq8nia6swlrruargobg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'jco35mupuodlcraianlicfu3c',
                name: 'auth_group_permissions_group_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'vwcy6rcl0g7djra51h3uys1co',
                targetTableId: 'qey85j4r4vmwhte8r9wimsz8k',
                sourceFieldId: 'rcg2zts0j2zhvb3rzlhtlcwy1',
                targetFieldId: '3uc872q2eah73cmfok4m2nha4',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'kmfhkkg517uj2ykip7bqm5l6r',
                name: 'accounts_customuser_user_permissions_customuser_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 's4vhkwlxqb8cl580p2amlsyw4',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: '16fr1mio7jua8epe94eizgwxv',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'l7xmngu7llggol768rx0kho7v',
                name: 'emaildigest_unsubscription_subscription_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '4r30mjer61qetdcubllpgvtnp',
                targetTableId: 'n2icqo5m7ii7vslxgltboicqb',
                sourceFieldId: 'nd0zshvc0pe50mx0hy4d9ujfy',
                targetFieldId: 'upjfup67uacxrty1dplvwm1sp',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'm1inqvh8fraijzxvia0j2l3jp',
                name: 'news_vote_item_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '5by7ufdjxc2q77rob07wq4rtv',
                targetTableId: 'ofqvhz8puoxyyh09oweayiw88',
                sourceFieldId: 'v78vdsjfh69p96x1d0cqfmz6k',
                targetFieldId: 'dvmwsbmclafso0iqsjpwrgn4f',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'p4oh7hnxbvlj2dsr19z7z1p94',
                name: 'accounts_customuser_groups_group_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'qg6no3tnfqchvkpet3y8aghl8',
                targetTableId: 'qey85j4r4vmwhte8r9wimsz8k',
                sourceFieldId: 'm1dqtgv21q9vhe0adk8xrakpw',
                targetFieldId: '3uc872q2eah73cmfok4m2nha4',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'qr4il8s1863gj1xwtjfovqd2h',
                name: 'auth_permission_content_type_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'hj2bexl6a27ghf8k9wiv8l12m',
                targetTableId: 'ew2veiwmyff5bi2tz6ask1unb',
                sourceFieldId: 'yhnlxws88q3wmku6pvicgu0zh',
                targetFieldId: 'gb9snc1ysqjx5udv19o9ciri1',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'th8f5q0hsehygjsnsmj49nin9',
                name: 'emaildigest_subscription_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'n2icqo5m7ii7vslxgltboicqb',
                targetTableId: '9hn3pgkwfddnv17sq0q8gtsag',
                sourceFieldId: 'upjfup67uacxrty1dplvwm1sp',
                targetFieldId: 'p5inc2slgnhk2nh7ulh0s4jqc',
                sourceCardinality: 'one',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'xxzvzgqnkzakfatoslmuexpnl',
                name: 'news_item_user_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 'ofqvhz8puoxyyh09oweayiw88',
                targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
                sourceFieldId: 'jzofaf88bcg4h519xrsq0c7nj',
                targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'yqcjwtlg6hdw2fuv0zs0dr20m',
                name: 'accounts_customuser_user_permissions_permission_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: 's4vhkwlxqb8cl580p2amlsyw4',
                targetTableId: 'hj2bexl6a27ghf8k9wiv8l12m',
                sourceFieldId: '9d73cxg805mo5dnlp4q38qglw',
                targetFieldId: 'lywozozq8nia6swlrruargobg',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'zm75ovy5pk4nr96bjz00o8cyw',
                name: 'emaildigest_unsubscription_from_digest_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '4r30mjer61qetdcubllpgvtnp',
                targetTableId: 'fj13bit1sskhfzqn6vyveka71',
                sourceFieldId: 'irpmysxs41unttoq8hc9p1bne',
                targetFieldId: 'e9mq1usut3gdrnhdn61ax9pjv',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
            {
                id: 'zm8zek80344gykvhrwyubnd0k',
                name: 'emaildigest_emaildigest_stories_emaildigest_id_foreign',
                sourceSchema: 'public',
                targetSchema: 'public',
                sourceTableId: '67f6pc9x0uyyjmwhsc09z86b5',
                targetTableId: 'fj13bit1sskhfzqn6vyveka71',
                sourceFieldId: 'cktumifnf94p01uysb31ajgkv',
                targetFieldId: 'e9mq1usut3gdrnhdn61ax9pjv',
                sourceCardinality: 'many',
                targetCardinality: 'one',
                createdAt: now,
            },
        ],
        dependencies: [],
    },
};