Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
import { DatabaseType } from '@/lib/domain/database-type';
import type { Template } from '../templates-data';
import image from '@/assets/templates/saas-pegasus-db.png';
import imageDark from '@/assets/templates/saas-pegasus-db-dark.png';
const now = Date.now();
export const saasPegasusDb: Template = {
slug: 'saas-pegasus-database',
name: 'SaaS Pegasus',
shortDescription: 'Django-based SaaS template',
description: 'SaaS Pegasus is a Django-based boilerplate',
image,
imageDark,
tags: ['Postgres', 'Python', 'Django'],
featured: true,
url: 'https://www.saaspegasus.com',
diagram: {
id: 'saas_pegasus_db',
name: 'saas-pegasus-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
tables: [
{
id: '1u2oduvcv5gn70pai3stphi3u',
name: 'teams_team',
schema: 'public',
x: 23.606797749978966,
y: 543.8926261462367,
fields: [
{
id: '8435nonqnnwb7shz24oywstie',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '28581f9pq0hr8db01c6an1ojn',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'fbdqfmrb7znzo25amzd4ufyx0',
name: 'slug',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'dp0omjjjzp1ketdp0dukrknkm',
name: 'created_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '0dl4fdtztvtgbobk4oqrws0x1',
name: 'updated_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'eb2ptpbyo2nre62tbaci5ira3',
name: 'subscription_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'c7lyiyewlxtuoiq6dcbzt76jh',
name: 'teams_team_slug_unique',
unique: true,
fieldIds: ['fbdqfmrb7znzo25amzd4ufyx0'],
createdAt: now,
},
{
id: '4uarigs7f4zt9oqw7p83bpy56',
name: 'teams_team_subscription_id_index',
unique: false,
fieldIds: ['eb2ptpbyo2nre62tbaci5ira3'],
createdAt: now,
},
{
id: '1vxzx7esk99y89dvewfelvboo',
name: 'teams_team_pkey',
unique: true,
fieldIds: ['8435nonqnnwb7shz24oywstie'],
createdAt: now,
},
],
color: '#9ef07a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '2w57d05shd3uqp69s9zsx01ak',
name: 'account_emailconfirmation',
schema: 'public',
x: -347.8708664619075,
y: 151.26418943564835,
fields: [
{
id: '7nktw450fr532q1oo4kkeeufe',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '88d94bl7fhzpaq7raw1cls573',
name: 'created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'jgnck9o4ilwwf5cedru2oj6oi',
name: 'sent',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'ypyycygdf3qqkdlurf5xaqzk7',
name: 'key',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'y8cejlg5ozo8ya69wskh97oi0',
name: 'email_address_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'zq070yfvva47tto8t4wjcj3d8',
name: 'account_emailconfirmation_email_address_id_index',
unique: false,
fieldIds: ['y8cejlg5ozo8ya69wskh97oi0'],
createdAt: now,
},
{
id: 'kw60i1oh1xs9e1m5njvnpt3a7',
name: 'account_emailconfirmation_pkey',
unique: true,
fieldIds: ['7nktw450fr532q1oo4kkeeufe'],
createdAt: now,
},
{
id: '5nwlvbwfpyqeqg7s778tvfd82',
name: 'account_emailconfirmation_key_unique',
unique: true,
fieldIds: ['ypyycygdf3qqkdlurf5xaqzk7'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '30gh7p4kkj4goo8nu9rv0w185',
name: 'users_customuser_groups',
schema: 'public',
x: 1008.1951507160749,
y: 1524.2227120361474,
fields: [
{
id: 'c3z0c39bnlq3w56ov6jgasrx9',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'f3mqibc2jemth8erkrm4pcpfc',
name: 'customuser_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'a0uoxmzwco6tjmmuxpfstwt8d',
name: 'group_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'n63q69dnhtsli7uhcoplv7k5u',
name: 'users_customuser_groups_customuser_id_group_id_unique',
unique: true,
fieldIds: [
'f3mqibc2jemth8erkrm4pcpfc',
'a0uoxmzwco6tjmmuxpfstwt8d',
],
createdAt: now,
},
{
id: 'qmgdyynbqg72idrgyaztuylth',
name: 'users_customuser_groups_pkey',
unique: true,
fieldIds: ['c3z0c39bnlq3w56ov6jgasrx9'],
createdAt: now,
},
{
id: 'mi1d5fopbbz1fuumgwtv9gsn8',
name: 'users_customuser_groups_group_id_index',
unique: false,
fieldIds: ['a0uoxmzwco6tjmmuxpfstwt8d'],
createdAt: now,
},
{
id: 'i8d7hxm9mdkjx4j3ewvyo0d74',
name: 'users_customuser_groups_customuser_id_index',
unique: false,
fieldIds: ['f3mqibc2jemth8erkrm4pcpfc'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '93gq1vmfz9n3xqk0zx3bs707e',
name: 'django_admin_log',
schema: 'public',
x: -673.6067977499789,
y: 393.8926261462367,
fields: [
{
id: 'wpi7g611mosjd4h0b9kdzko2q',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '0hvzuxv1jgzb14mshr4eillpe',
name: 'action_time',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'u2gpj5xtjlawkzb3vjqgxkyex',
name: 'object_id',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '8lo2fsmzn2v54t4w4b8x8g89j',
name: 'object_repr',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '4q8at2bgh9wzmz2u5lf2dlxgo',
name: 'action_flag',
type: {
id: 'smallint',
name: 'smallint',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'ujr6uxvvkocha5kvmdtqrokgw',
name: 'change_message',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'r48km5jfxqb2fsfqkaxpdlwe6',
name: 'content_type_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'boamwwtss9zod3dhk35rq4r7s',
name: 'user_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: '03lmfp9ehn8l5af4h24cv5c5y',
name: 'django_admin_log_pkey',
unique: true,
fieldIds: ['wpi7g611mosjd4h0b9kdzko2q'],
createdAt: now,
},
{
id: 'btqkqgwzurjxmvw5xu1eyjco4',
name: 'django_admin_log_content_type_id_index',
unique: false,
fieldIds: ['r48km5jfxqb2fsfqkaxpdlwe6'],
createdAt: now,
},
{
id: 'znzyj6k6pvlimda4ttldiysj1',
name: 'django_admin_log_user_id_index',
unique: false,
fieldIds: ['boamwwtss9zod3dhk35rq4r7s'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '9olslxca6rrm56pivmkhc3eqg',
name: 'django_site',
schema: 'public',
x: 895.9515593875099,
y: 332.6197424156212,
fields: [
{
id: 'zhzhvuvis9apvrjd1cz1ysp4f',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'mdik4uk9xythhldvb0vw8kk7z',
name: 'domain',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '9qfd4bzzyvtjybgt1ohvz99b8',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'u73eq7oj50fnu475f8jv0qnbk',
name: 'django_site_domain_unique',
unique: true,
fieldIds: ['mdik4uk9xythhldvb0vw8kk7z'],
createdAt: now,
},
{
id: 'zr4nkjc695rogxradtsk10ig8',
name: 'django_site_pkey',
unique: true,
fieldIds: ['zhzhvuvis9apvrjd1cz1ysp4f'],
createdAt: now,
},
],
color: '#c05dcf',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'bernt77fii6t6fxputd9bm3ux',
name: 'auth_permission',
schema: 'public',
x: -297.87086646190727,
y: 1418.1566948581653,
fields: [
{
id: 'vl7xof9qj7aoxatwbm8gj697w',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '9sx7auy9q0uj1wxqg2x1f8pet',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '511ta5h59a8zzxya089a01gtu',
name: 'content_type_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'oifg6g2xj67bm2x67zlc4sx6o',
name: 'codename',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: '0o6so2tbbq1zinm3t70u95hg4',
name: 'auth_permission_content_type_id_codename_unique',
unique: true,
fieldIds: [
'511ta5h59a8zzxya089a01gtu',
'oifg6g2xj67bm2x67zlc4sx6o',
],
createdAt: now,
},
{
id: '1ew2mjjpkqnm1vs0rzgcx35d0',
name: 'auth_permission_pkey',
unique: true,
fieldIds: ['vl7xof9qj7aoxatwbm8gj697w'],
createdAt: now,
},
{
id: '52l66tc9lwjlm3rm80tm2yde2',
name: 'auth_permission_content_type_id_index',
unique: false,
fieldIds: ['511ta5h59a8zzxya089a01gtu'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'bols56rjtfid1ou8y7gxulb4m',
name: 'djstripe_subscription',
schema: 'public',
x: 423.60679774997897,
y: 543.8926261462366,
fields: [
{
id: 'rgkkyso52iq5hjdcym9vcwngb',
name: 'djstripe_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'khypbi93c7qfhqwbpfwgzpw51',
name: 'id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'rv70as81sbfazsnltwat8r3vz',
name: 'livemode',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'bfubuchely9m2grliii9ystc3',
name: 'created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '8yjzsw23ly3570vj7qacuc640',
name: 'metadata',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '65h0xjkwy90vqwzwys4609xtj',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'zinsr0kio3y4gc3rmq0aov39m',
name: 'djstripe_created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '605hw38dcwuctt2yjsekw6kx2',
name: 'djstripe_updated',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'qu5lxi0li02t1yr80dhfsv6vx',
name: 'application_fee_percent',
type: {
id: 'numeric',
name: 'numeric',
},
primaryKey: false,
unique: false,
nullable: true,
precision: 8,
scale: 2,
createdAt: now,
},
{
id: '891m6dr93zk7c41lzk8zifw4d',
name: 'billing',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '0hjtrlzjx9wo4zg1daw5pcdom',
name: 'billing_cycle_anchor',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'egk7qctqpu41q81cvl2w27prw',
name: 'cancel_at_period_end',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '4txlhf7v0e6a0ndz67a8b4y6a',
name: 'canceled_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'rtw0p8hv5jqz3ikxybwfivyws',
name: 'current_period_end',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '3qxvzv00csknnic90c9p4oj5e',
name: 'current_period_start',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 's3tk5f19ua71ut8rtkhqrnnk7',
name: 'days_until_due',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'ezdayf4cji5rw6d309wfrmawe',
name: 'ended_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'p7quop7bkr4i388es8yxc94z6',
name: 'quantity',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'knrnbplkpyyyj4fqhtmnp01sl',
name: 'start',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'egl8y7zj9k29fxen5gwujpgq8',
name: 'status',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'n5rmkpozzdnp55q5h9c7w4dry',
name: 'tax_percent',
type: {
id: 'numeric',
name: 'numeric',
},
primaryKey: false,
unique: false,
nullable: true,
precision: 8,
scale: 2,
createdAt: now,
},
{
id: 'a8fnzhphzcrr57dp0u1uo6dxf',
name: 'trial_end',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'gdwfadsnxf0t6h0do3s26b60g',
name: 'trial_start',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'j01aamwy0pk8svu8q9t099ie5',
name: 'customer_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'pd2105v8h0ig15lv6d3rxkm6v',
name: 'plan_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'f5xeri6w9918wdm0gs1mj5ljv',
name: 'pending_setup_intent_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'n2alqfdarvimut4nn60m8gv3v',
name: 'djstripe_subscription_pkey',
unique: true,
fieldIds: ['rgkkyso52iq5hjdcym9vcwngb'],
createdAt: now,
},
{
id: 'psxn2b28q1jrbid7h50tmztrs',
name: 'djstripe_subscription_id_unique',
unique: true,
fieldIds: ['khypbi93c7qfhqwbpfwgzpw51'],
createdAt: now,
},
{
id: 'atasz6nigrd8bbdd2sekae9ey',
name: 'djstripe_subscription_pending_setup_intent_id_index',
unique: false,
fieldIds: ['f5xeri6w9918wdm0gs1mj5ljv'],
createdAt: now,
},
{
id: '2pohkcurq2h6i6zzypyd98w5m',
name: 'djstripe_subscription_customer_id_index',
unique: false,
fieldIds: ['j01aamwy0pk8svu8q9t099ie5'],
createdAt: now,
},
{
id: 'b0uyyohvjfr3h0tpgc9eb8ej3',
name: 'djstripe_subscription_plan_id_index',
unique: false,
fieldIds: ['pd2105v8h0ig15lv6d3rxkm6v'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'botq7y2oyrc54ol21jhjufsli',
name: 'djstripe_product',
schema: 'public',
x: 1223.606797749979,
y: 543.8926261462366,
fields: [
{
id: 'uqejnwy9o3o35ti6z15w8fti7',
name: 'djstripe_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '8jqb30o2jzdq9rpt3a9uzhdrk',
name: 'id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 's24kt5d8tg7y5na1zdrussrn6',
name: 'livemode',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '157ktk633vyh4x2gwhl2sa7wj',
name: 'created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'dfyl2m89h5qh5vw0kbfdhi4yq',
name: 'metadata',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'niypw42ohfktr3f0a87da8o2g',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'pc3iuj33epnno988cw4z0w76t',
name: 'djstripe_created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'f9ubvxeqy2jn979o664ddd5jy',
name: 'djstripe_updated',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'm6rbpr08lc6ue1p6a3giidq2i',
name: 'name',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'fece1v2nces6hulnbmfclio40',
name: 'type',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'e9wkwrmn6nad2ob9f5yede4vn',
name: 'active',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '8rxdytudbgo2bdaulb0n4c4w2',
name: 'attributes',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'o9uc32wa078lsuohgh5cz7tlj',
name: 'caption',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'y8vd8n0jmnyxzv5k5xgjj6x5l',
name: 'deactivate_on',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '79k5ag8zigncwkkdsdyrv17z1',
name: 'images',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'i2eeisu2za3dcns87jlaogur1',
name: 'package_dimensions',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '25oyu5fj7sxfm33rkdimdvze6',
name: 'shippable',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'nzzmwimra7gr8zxxmrhu9h3t4',
name: 'url',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'rew0oljsxo08ldifw98o8an12',
name: 'statement_descriptor',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'ouuaslc0an6yzli2v0y5sgtz7',
name: 'unit_label',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'ql99jp51e57nqggeo94ead0t4',
name: 'djstripe_product_id_unique',
unique: true,
fieldIds: ['8jqb30o2jzdq9rpt3a9uzhdrk'],
createdAt: now,
},
{
id: 'g44dfcuf6v3tsa6lnqd1yp9vp',
name: 'djstripe_product_pkey',
unique: true,
fieldIds: ['uqejnwy9o3o35ti6z15w8fti7'],
createdAt: now,
},
],
color: '#ff9f74',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'eb4m48j6ldckyql3f88ueairp',
name: 'teams_invitation',
schema: 'public',
x: 1247.8708664619076,
y: 968.1566948581651,
fields: [
{
id: 'hsjyhrbho01ef7ed8qkn6uopr',
name: 'id',
type: {
id: 'uuid',
name: 'uuid',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'txvj26gbfyclnz16g7d2z79sa',
name: 'email',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'p8yv6iikm8a6yduztdixdu8nx',
name: 'role',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'r59qf2ffs1k8ut0at8sc2bkd5',
name: 'is_accepted',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '6xl0xsdqc0fvlwtv1i5aza4w8',
name: 'invited_by_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'tn9tu5178inn45tf462wyqipt',
name: 'team_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '638vdsj8432ddv9knz07rb4z8',
name: 'accepted_by_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '321wzpthi9sr3jlpbwm4da5n4',
name: 'created_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '0i4pcwuxbiv1r7qpzifunaj4w',
name: 'updated_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'xhv2zuxijzmag4qbloi90es0p',
name: 'teams_invitation_accepted_by_id_index',
unique: false,
fieldIds: ['638vdsj8432ddv9knz07rb4z8'],
createdAt: now,
},
{
id: 'fx6w2ikzo2rnvz3ssq236i2y5',
name: 'teams_invitation_team_id_email_unique',
unique: true,
fieldIds: [
'tn9tu5178inn45tf462wyqipt',
'txvj26gbfyclnz16g7d2z79sa',
],
createdAt: now,
},
{
id: 't2xjydoq8m00yvhbqjs1cipzh',
name: 'teams_invitation_pkey',
unique: true,
fieldIds: ['hsjyhrbho01ef7ed8qkn6uopr'],
createdAt: now,
},
{
id: 'v1bdnmrj2uvkebd5hj02o22xv',
name: 'teams_invitation_invited_by_id_index',
unique: false,
fieldIds: ['6xl0xsdqc0fvlwtv1i5aza4w8'],
createdAt: now,
},
{
id: 'o5if344iw78l48vfgfo7ou1um',
name: 'teams_invitation_team_id_index',
unique: false,
fieldIds: ['tn9tu5178inn45tf462wyqipt'],
createdAt: now,
},
],
color: '#4dee8a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'fu2hwo4m6rfw1ddujib9m8utv',
name: 'pegasus_examples_payment',
schema: 'public',
x: -200.6572709619495,
y: 999.7923268595052,
fields: [
{
id: 'la89x42uctlczf6ptclcb8cst',
name: 'created_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'pj8jamomm86pzg0rg1o8ijjwz',
name: 'updated_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'awgr5v9m1dx9qipeelvlt52gy',
name: 'id',
type: {
id: 'uuid',
name: 'uuid',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'ku1s57u97idew0m8mnntcdf1z',
name: 'charge_id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'fruga5c2i0n1sfaocyegiyvjy',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '09b4l95va0m72lz103fkqahxb',
name: 'amount',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'n6s3ccs8dnqt8c2infkz2g3wf',
name: 'user_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'tg8pvfjwfq5vuk0x5q69rna5d',
name: 'pegasus_examples_payment_pkey',
unique: true,
fieldIds: ['la89x42uctlczf6ptclcb8cst'],
createdAt: now,
},
{
id: 'hv58w8s7jdobia1x9jwqk2ydf',
name: 'pegasus_examples_payment_user_id_index',
unique: false,
fieldIds: ['n6s3ccs8dnqt8c2infkz2g3wf'],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'gc54ritjq87dxt4dsefgu0x6j',
name: 'pegasus_examples_employee',
schema: 'public',
x: 500,
y: 100,
fields: [
{
id: 'nsr67hj8bq2d6s46uvi37jo2l',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'idyzo1q0wwr4xeb9m0ql58rme',
name: 'created_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'to5uw4k6x0okwqmn16p2m6bao',
name: 'updated_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '4lwxn22hm55k1k811z4xl2ttz',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'iyafk6cdp52v3bd1zc57ha8re',
name: 'department',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'auot3l9vuowx2v2jhash6qeny',
name: 'salary',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'uhtkgu0bt30hm47es8ccdmhob',
name: 'user_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'vuk7gqy6nly8gcjk1lulwqo55',
name: 'pegasus_examples_employee_pkey',
unique: true,
fieldIds: ['nsr67hj8bq2d6s46uvi37jo2l'],
createdAt: now,
},
{
id: '5luqwz8mwpilhof20van5prt6',
name: 'pegasus_examples_employee_user_id_index',
unique: false,
fieldIds: ['uhtkgu0bt30hm47es8ccdmhob'],
createdAt: now,
},
],
color: '#8eb7ff',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'kkeh83ftze2bnoa4fm1nk2q9b',
name: 'django_content_type',
schema: 'public',
x: -697.8708664619073,
y: 818.1566948581652,
fields: [
{
id: '2a2ktoashdnp91bfzzxf0pelv',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'qry44p8igbd91rro6w4obz6lp',
name: 'app_label',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '1xaun6eobzqmn4k46eq9p1f3i',
name: 'model',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'txhr59vgf1xwxitcl54jg4cww',
name: 'django_content_type_app_label_model_unique',
unique: true,
fieldIds: [
'qry44p8igbd91rro6w4obz6lp',
'1xaun6eobzqmn4k46eq9p1f3i',
],
createdAt: now,
},
{
id: '7sii5lcq6g6mnmoksts3zmbbv',
name: 'django_content_type_pkey',
unique: true,
fieldIds: ['2a2ktoashdnp91bfzzxf0pelv'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'l0z0yt28vp16bsksxtum7p01e',
name: 'users_customuser_user_permissions',
schema: 'public',
x: -743.459456467567,
y: 1221.4550634025388,
fields: [
{
id: 'ytwl8gml4f46t37cms4efard1',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '20kkd24bffpo8jwx7kodaf997',
name: 'customuser_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'ujbi6c57y8psau3qnwq7c3jau',
name: 'permission_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'cu2qfsrqq3g7247pw554dsxl3',
name: 'users_customuser_user_permissions_customuser_id_index',
unique: false,
fieldIds: ['20kkd24bffpo8jwx7kodaf997'],
createdAt: now,
},
{
id: 'rvdgdas00raga79h5sog507ed',
name: 'users_customuser_user_permissions_customuser_id_permission_id_u',
unique: true,
fieldIds: [
'20kkd24bffpo8jwx7kodaf997',
'ujbi6c57y8psau3qnwq7c3jau',
],
createdAt: now,
},
{
id: 'azh6aeqq71n1ztfltedcl7b03',
name: 'users_customuser_user_permissions_permission_id_index',
unique: false,
fieldIds: ['ujbi6c57y8psau3qnwq7c3jau'],
createdAt: now,
},
{
id: '7eujz9wnlgrd1qw2mdnikhb32',
name: 'users_customuser_user_permissions_pkey',
unique: true,
fieldIds: ['ytwl8gml4f46t37cms4efard1'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'ldaf8idytg95aypgal8frho2n',
name: 'django_session',
schema: 'public',
x: 1039.195393388688,
y: 116.37427747571724,
fields: [
{
id: 'jovfmy8epi0p2jt49idccqds2',
name: 'session_key',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '60h4lmpvqoyt25kl5j96l99eh',
name: 'session_data',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'oyo9zaz45pvaiej3ht2etznh8',
name: 'expire_date',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'tvuzyuj2h4mtxdn7pu412wplj',
name: 'django_session_pkey',
unique: true,
fieldIds: ['jovfmy8epi0p2jt49idccqds2'],
createdAt: now,
},
{
id: 'a89vn37xhu1gp1ffvi30vv4dj',
name: 'django_session_expire_date_index',
unique: false,
fieldIds: ['oyo9zaz45pvaiej3ht2etznh8'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'm54fglxs3liiccaioe9m0x7wb',
name: 'account_emailaddress',
schema: 'public',
x: -323.6067977499789,
y: 575.5282581475768,
fields: [
{
id: 'hh8ykpl1jvk71cz6u6959jntd',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'zim5qc6g4qkx1h8pgg2gd4apf',
name: 'email',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '9h9ch1tl6401ffs4kmm14zqsu',
name: 'verified',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'iikqt8ei5be5bkbknxuxss6h0',
name: 'primary',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'n2d16ikhqpbtrlf7q63c2z5p5',
name: 'user_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: '0l63o3d7zqrbecqvndng59e0i',
name: 'account_emailaddress_pkey',
unique: true,
fieldIds: ['hh8ykpl1jvk71cz6u6959jntd'],
createdAt: now,
},
{
id: 'pc1iu8jor6tisrmc57zxfrjjt',
name: 'account_emailaddress_email_unique',
unique: true,
fieldIds: ['zim5qc6g4qkx1h8pgg2gd4apf'],
createdAt: now,
},
{
id: 'setfc6dhnm059ysffu2i70vcl',
name: 'account_emailaddress_user_id_index',
unique: false,
fieldIds: ['n2d16ikhqpbtrlf7q63c2z5p5'],
createdAt: now,
},
],
color: '#9ef07a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'p25pk4e5qta20ik76dn80i91e',
name: 'auth_group_permissions',
schema: 'public',
x: 102.12913353809273,
y: 1418.1566948581653,
fields: [
{
id: '8smjo6h5anil7ugtm44iz4vge',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'wrgbyp3prm63frkay826dknjh',
name: 'group_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'of519jzzln94k2gp6b4tl7ypm',
name: 'permission_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'vs1luqnruwf8xwucf2ksqvor4',
name: 'auth_group_permissions_group_id_permission_id_unique',
unique: true,
fieldIds: [
'wrgbyp3prm63frkay826dknjh',
'of519jzzln94k2gp6b4tl7ypm',
],
createdAt: now,
},
{
id: 'ythdnme4fhrgxs0otnosv7025',
name: 'auth_group_permissions_permission_id_index',
unique: false,
fieldIds: ['of519jzzln94k2gp6b4tl7ypm'],
createdAt: now,
},
{
id: 'yjzeioj7oniu7hd5rfebykmes',
name: 'auth_group_permissions_pkey',
unique: true,
fieldIds: ['8smjo6h5anil7ugtm44iz4vge'],
createdAt: now,
},
{
id: 'irxz1p0xvuv19lhsnoqetqs9l',
name: 'auth_group_permissions_group_id_index',
unique: false,
fieldIds: ['wrgbyp3prm63frkay826dknjh'],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'p7bkkch9svcpvfix5kbou3o78',
name: 'auth_group',
schema: 'public',
x: 608.1951507160749,
y: 1524.2227120361474,
fields: [
{
id: 'zmo7af8gjk3j9523muwnfh273',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'nfdx84qtt3ajofu5qw9ggna42',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'uj96zpdtj7xqaq2gdtdnvwdyb',
name: 'auth_group_name_unique',
unique: true,
fieldIds: ['nfdx84qtt3ajofu5qw9ggna42'],
createdAt: now,
},
{
id: 'j6q8jqles5w8pcjakrcwd487p',
name: 'auth_group_pkey',
unique: true,
fieldIds: ['zmo7af8gjk3j9523muwnfh273'],
createdAt: now,
},
],
color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'syqgb3wi47p3yohvlmzzg33xy',
name: 'djstripe_customer',
schema: 'public',
x: 423.60679774997897,
y: 1043.8926261462366,
fields: [
{
id: 'y4nz1tesuz1l37ninhadnt8f3',
name: 'djstripe_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'lev37obzwdf5hy2e6nnncwmur',
name: 'id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'a27808mw7v2gszvprpwdh0bq5',
name: 'livemode',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'k5fwz9i81zr4v4ht3y81pdqas',
name: 'created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '0ih89yxqvdqh8yhwwcbrw2xg1',
name: 'metadata',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'pvoeos5mej4908cn1qai17all',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'q9epds5xp1qy4lp2oamg951xo',
name: 'djstripe_created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'jxi4hb2yjri0mh9vmyjxhyxrd',
name: 'djstripe_updated',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '0tbp1dgmn7vf1uqtj83fcyvik',
name: 'balance',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'wcwqxiq3vu6sehr18ugn21tfi',
name: 'business_vat_id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'ejr9t9u0mf432361780m5u5ns',
name: 'currency',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'gkplv918rmnwcvs636mrns03a',
name: 'delinquent',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '09qu4tufqs7xs8zvj6idbnwcf',
name: 'coupon_start',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'vsf5o7uy6zb42442nrcchgy04',
name: 'coupon_end',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'goqft3ujwlszh6pw5cziry1h6',
name: 'email',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '08blm68umuys1aq8hhkh6b4da',
name: 'shipping',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'biqo4z8o6dta55pdk6iwkpgfb',
name: 'date_purged',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '3p7uztz647d94sayfr22foq1p',
name: 'coupon_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'ee4toyp4tc8nz415ntig5u3kr',
name: 'default_source_id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'za6lwqot0hvaeqoqv829hp0yx',
name: 'subscriber_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'zscuad4xu5kbwyxiwg3cj3wp7',
name: 'address',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'ac0n0se7l4i71shqub0pmykkh',
name: 'invoice_prefix',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '5s5k3pdy4piwzyjs32gqz4krq',
name: 'invoice_settings',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'm6tf4jzdqrdzhtodfhhhiflk8',
name: 'name',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'degwd2igo2tq2henqrp9xg96n',
name: 'phone',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'b989ngma3t3entz8vmra9vpgt',
name: 'preferred_locales',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'l4dgaomkclf4h4eaij5z6s0zq',
name: 'tax_exempt',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'an3dkpe9bvd6uy4g1tc1udhvv',
name: 'default_payment_method_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'cwkd1s8i4rtopv9pjxk1m3x2e',
name: 'djstripe_customer_id_unique',
unique: true,
fieldIds: ['lev37obzwdf5hy2e6nnncwmur'],
createdAt: now,
},
{
id: '8fyvwd9o08p6uhd133esxyqj1',
name: 'djstripe_customer_pkey',
unique: true,
fieldIds: ['y4nz1tesuz1l37ninhadnt8f3'],
createdAt: now,
},
{
id: '1hz3gtl7uijzcwk8zq1z3grvs',
name: 'djstripe_customer_subscriber_id_index',
unique: false,
fieldIds: ['za6lwqot0hvaeqoqv829hp0yx'],
createdAt: now,
},
{
id: 'jmrh0ql0fjjbislbu9jattxbp',
name: 'djstripe_customer_default_source_id_index',
unique: false,
fieldIds: ['ee4toyp4tc8nz415ntig5u3kr'],
createdAt: now,
},
{
id: 'lnrxnsjkwscz6ouo6eqhig9mk',
name: 'djstripe_customer_default_payment_method_id_index',
unique: false,
fieldIds: ['an3dkpe9bvd6uy4g1tc1udhvv'],
createdAt: now,
},
{
id: '7t12l1dmwqztt20xblyrvguiu',
name: 'djstripe_customer_coupon_id_index',
unique: false,
fieldIds: ['3p7uztz647d94sayfr22foq1p'],
createdAt: now,
},
{
id: 'c0chyv93d7auo5g60s1430zbt',
name: 'djstripe_customer_subscriber_id_livemode_unique',
unique: true,
fieldIds: [
'za6lwqot0hvaeqoqv829hp0yx',
'a27808mw7v2gszvprpwdh0bq5',
],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'xl48htp89k7z4hx6s9mfp9hn5',
name: 'djstripe_plan',
schema: 'public',
x: 823.606797749979,
y: 543.8926261462366,
fields: [
{
id: 'bhu6hzogsl5h17h04szu2fa0c',
name: 'djstripe_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'rub9gkzie0w8jhg2qzjwxg8wd',
name: 'id',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'kcskl9wsohofeoqxg7z2tyzu6',
name: 'livemode',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'uhakhl160vtfmxpim5db3yhcv',
name: 'created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'vr5rvq018x67xi4xmnw6aaplk',
name: 'metadata',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'b5h8jv8ek8dyymvwrw83l5q84',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'aemf642grwm37gfdnssqblc1s',
name: 'djstripe_created',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'a2a0alnrx35vi96f71k5nz17u',
name: 'djstripe_updated',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '3dtmgg5x5i3fxx16heljps0so',
name: 'aggregate_usage',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'hvly88jske80z92nb7w7ow8en',
name: 'amount',
type: {
id: 'numeric',
name: 'numeric',
},
primaryKey: false,
unique: false,
nullable: true,
precision: 8,
scale: 2,
createdAt: now,
},
{
id: 'kfc98xu0bk5a8svfkqvqbgl93',
name: 'billing_scheme',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'e56ro33k1ntjowb74nxzibm5x',
name: 'currency',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'bum3be9fnx01n2ynnpyydva93',
name: 'interval',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'k7sgkas8d58wslceqd08h00yp',
name: 'interval_count',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'ropmarxx8nr1vhx3osjo8ipx8',
name: 'nickname',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '37h3z0o7t674mebs3uhxnxl9y',
name: 'tiers',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'lwq4afa6t8yr64zgpv5f4c8ch',
name: 'tiers_mode',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'd4mckp7k4yhhoeuj78izdv9rl',
name: 'transform_usage',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '1hrvwjvc6ppdl2l5uxndtjunt',
name: 'trial_period_days',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'o85ecvy0heotrh44v5ws91m1i',
name: 'usage_type',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'j49as9z9yjugv2hbx7tjpf4hs',
name: 'name',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'k986jos3b0112mrrals0tksm9',
name: 'statement_descriptor',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'kpnn418avv3p86oxhstyvr90x',
name: 'product_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'p5q8rrj4icvy114qwmk731jx8',
name: 'active',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'eu9gnt8z8grc3jb9jbt866m3o',
name: 'djstripe_plan_id_unique',
unique: true,
fieldIds: ['rub9gkzie0w8jhg2qzjwxg8wd'],
createdAt: now,
},
{
id: 'ilg245sohcz883g0umv2h8hgw',
name: 'djstripe_plan_product_id_index',
unique: false,
fieldIds: ['kpnn418avv3p86oxhstyvr90x'],
createdAt: now,
},
{
id: 'spfc3qvmejn0n8vwxyol5sgj4',
name: 'djstripe_plan_pkey',
unique: true,
fieldIds: ['bhu6hzogsl5h17h04szu2fa0c'],
createdAt: now,
},
],
color: '#8eb7ff',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'y91684tjgu45cm2u7fgik9mpy',
name: 'django_migrations',
schema: 'public',
x: 1302.2949928448784,
y: 288.1123032341551,
fields: [
{
id: 'pz9n1ypznbgb05m7qmovu77vv',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'ey8p0lseifwlg8smnpov5txin',
name: 'app',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '479d75u87ixxzgyi7ufyj0zc8',
name: 'name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'm12qwlfj6b6ud5dkx3evj1tsd',
name: 'applied',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'v1iddje04b0vby01f7jz8y5tm',
name: 'django_migrations_pkey',
unique: true,
fieldIds: ['pz9n1ypznbgb05m7qmovu77vv'],
createdAt: now,
},
],
color: '#ffe374',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'yw2qayl7er339a2ero8m7re5l',
name: 'users_customuser',
schema: 'public',
x: 100,
y: 100,
fields: [
{
id: 'h7tboik3glznqfvf55fehwssz',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '14ou3gr1udrxxe4bocuxrwqa5',
name: 'password',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'e1hizj47nqbg5hqkwp2a4fn9a',
name: 'last_login',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '1y03a14jnupzp2b1cfke4qrby',
name: 'is_superuser',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'wlf61khn5o2v74vlc61qu6u3u',
name: 'username',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '3ryhmt0b1yp2tbov2v4ggg8sj',
name: 'first_name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '72ap845rk5rl9sn46j048vjmf',
name: 'last_name',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'w79phdlbaa0j6nip6c1filayu',
name: 'email',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '6th6drydpgrieu6hzgeuoyctw',
name: 'is_staff',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '7703utz2upan9t4b1xseuko18',
name: 'is_active',
type: {
id: 'boolean',
name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'obpt7og5y6xfn97ny0py858n4',
name: 'date_joined',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: '15b6pysydnuyvx26h8a7kc7f7',
name: 'avatar',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'dl0w1qi9ywa4mzaobnt053o0l',
name: 'customer_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'ncs1ggqhbn9y3fqt31prsbr4j',
name: 'subscription_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: '5l7pe2pb91jgsrqpuk12l0ly0',
name: 'users_customuser_customer_id_index',
unique: false,
fieldIds: ['dl0w1qi9ywa4mzaobnt053o0l'],
createdAt: now,
},
{
id: '8pqzzeqlq8232au5riww25rm8',
name: 'users_customuser_username_unique',
unique: true,
fieldIds: ['wlf61khn5o2v74vlc61qu6u3u'],
createdAt: now,
},
{
id: 'jg83rx9wbia3wjztg4g1ulyz9',
name: 'users_customuser_subscription_id_index',
unique: false,
fieldIds: ['ncs1ggqhbn9y3fqt31prsbr4j'],
createdAt: now,
},
{
id: '7mobch8vuxxj4nnr7z9es136x',
name: 'users_customuser_pkey',
unique: true,
fieldIds: ['h7tboik3glznqfvf55fehwssz'],
createdAt: now,
},
],
color: '#c05dcf',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'z1j413wkm5l6t6t3jnf3806j4',
name: 'teams_membership',
schema: 'public',
x: 847.8708664619076,
y: 968.1566948581651,
fields: [
{
id: 'ent3bq2vqll0mmjqfi1lpfsw8',
name: 'id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'yv6injxz2zxprsq1k5yij0qvn',
name: 'role',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'y9c42kb8k9cwvzszst1xtp26l',
name: 'team_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'h9wknl1oef3c9avy6ywq201h8',
name: 'user_id',
type: {
id: 'integer',
name: 'integer',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'k0xwv0c4mia8u47tmbgywy17o',
name: 'created_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'scbidz4l1s07i6evl7muojn2h',
name: 'updated_at',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'iiqr9enaxtq01bhhy3e8zf87b',
name: 'teams_membership_pkey',
unique: true,
fieldIds: ['ent3bq2vqll0mmjqfi1lpfsw8'],
createdAt: now,
},
{
id: 'u46rssgn0t13bp804ydf68khh',
name: 'teams_membership_team_id_index',
unique: false,
fieldIds: ['y9c42kb8k9cwvzszst1xtp26l'],
createdAt: now,
},
{
id: '7cvrwsn3l21odj1is70zexy7w',
name: 'teams_membership_user_id_index',
unique: false,
fieldIds: ['h9wknl1oef3c9avy6ywq201h8'],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
],
relationships: [
{
id: '0nmsf9rxtnyn15qycjpybnqpn',
name: 'pegasus_examples_payment_user_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'fu2hwo4m6rfw1ddujib9m8utv',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'n6s3ccs8dnqt8c2infkz2g3wf',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '16f131wgz005xhm0012cdp9wy',
name: 'django_admin_log_content_type_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: '93gq1vmfz9n3xqk0zx3bs707e',
targetTableId: 'kkeh83ftze2bnoa4fm1nk2q9b',
sourceFieldId: 'r48km5jfxqb2fsfqkaxpdlwe6',
targetFieldId: '2a2ktoashdnp91bfzzxf0pelv',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '2s15pesx6v55ya4kpbfitwll4',
name: 'teams_membership_team_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'z1j413wkm5l6t6t3jnf3806j4',
targetTableId: '1u2oduvcv5gn70pai3stphi3u',
sourceFieldId: 'y9c42kb8k9cwvzszst1xtp26l',
targetFieldId: '8435nonqnnwb7shz24oywstie',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '5bvdhr6g2aaqxcdvg92t36jtj',
name: 'auth_permission_content_type_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'bernt77fii6t6fxputd9bm3ux',
targetTableId: 'kkeh83ftze2bnoa4fm1nk2q9b',
sourceFieldId: '511ta5h59a8zzxya089a01gtu',
targetFieldId: '2a2ktoashdnp91bfzzxf0pelv',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '6oirnxm7s8uve71c50mpn7jko',
name: 'users_customuser_subscription_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'yw2qayl7er339a2ero8m7re5l',
targetTableId: 'bols56rjtfid1ou8y7gxulb4m',
sourceFieldId: 'ncs1ggqhbn9y3fqt31prsbr4j',
targetFieldId: 'rgkkyso52iq5hjdcym9vcwngb',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '96pyq4zktquirpl00l1klu07j',
name: 'teams_invitation_invited_by_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'eb4m48j6ldckyql3f88ueairp',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: '6xl0xsdqc0fvlwtv1i5aza4w8',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '9bshd6ta86wrbwbalsfbxenoa',
name: 'pegasus_examples_employee_user_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'gc54ritjq87dxt4dsefgu0x6j',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'uhtkgu0bt30hm47es8ccdmhob',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'a7wyaewfvfg21slvf23ydif0p',
name: 'account_emailconfirmation_email_address_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: '2w57d05shd3uqp69s9zsx01ak',
targetTableId: 'm54fglxs3liiccaioe9m0x7wb',
sourceFieldId: 'y8cejlg5ozo8ya69wskh97oi0',
targetFieldId: 'hh8ykpl1jvk71cz6u6959jntd',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'ar7q7kdw12zxuo1tsphthdmy4',
name: 'teams_membership_user_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'z1j413wkm5l6t6t3jnf3806j4',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'h9wknl1oef3c9avy6ywq201h8',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'caosbco22g2hqx3m9wgvw2jf3',
name: 'users_customuser_user_permissions_customuser_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'l0z0yt28vp16bsksxtum7p01e',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: '20kkd24bffpo8jwx7kodaf997',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'd12rc9y5858z3r0un8n2bnwxw',
name: 'account_emailaddress_user_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'm54fglxs3liiccaioe9m0x7wb',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'n2d16ikhqpbtrlf7q63c2z5p5',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'd8ei3hidowsfje0zcgra2bi2z',
name: 'auth_group_permissions_group_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'p25pk4e5qta20ik76dn80i91e',
targetTableId: 'p7bkkch9svcpvfix5kbou3o78',
sourceFieldId: 'wrgbyp3prm63frkay826dknjh',
targetFieldId: 'zmo7af8gjk3j9523muwnfh273',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'etyuylixdu4kv722j5bba97wg',
name: 'djstripe_customer_subscriber_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'syqgb3wi47p3yohvlmzzg33xy',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'za6lwqot0hvaeqoqv829hp0yx',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'hctw21i5488q7qsaanoxz3z33',
name: 'djstripe_plan_product_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'xl48htp89k7z4hx6s9mfp9hn5',
targetTableId: 'botq7y2oyrc54ol21jhjufsli',
sourceFieldId: 'kpnn418avv3p86oxhstyvr90x',
targetFieldId: 'uqejnwy9o3o35ti6z15w8fti7',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'i22u3qt028107kznqmbatq6rg',
name: 'auth_group_permissions_permission_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'p25pk4e5qta20ik76dn80i91e',
targetTableId: 'bernt77fii6t6fxputd9bm3ux',
sourceFieldId: 'of519jzzln94k2gp6b4tl7ypm',
targetFieldId: 'vl7xof9qj7aoxatwbm8gj697w',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'iyqqkib4uka9qvlln4ad1673a',
name: 'teams_team_subscription_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: '1u2oduvcv5gn70pai3stphi3u',
targetTableId: 'bols56rjtfid1ou8y7gxulb4m',
sourceFieldId: 'eb2ptpbyo2nre62tbaci5ira3',
targetFieldId: 'rgkkyso52iq5hjdcym9vcwngb',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'jorc1k46jqkqjw3a5ucpdbo9s',
name: 'users_customuser_user_permissions_permission_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'l0z0yt28vp16bsksxtum7p01e',
targetTableId: 'bernt77fii6t6fxputd9bm3ux',
sourceFieldId: 'ujbi6c57y8psau3qnwq7c3jau',
targetFieldId: 'vl7xof9qj7aoxatwbm8gj697w',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'q8i04d168sgfznho4eaflwc28',
name: 'django_admin_log_user_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: '93gq1vmfz9n3xqk0zx3bs707e',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'boamwwtss9zod3dhk35rq4r7s',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'r0hfnrha5nes0g49nz9gl9am4',
name: 'djstripe_subscription_customer_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'bols56rjtfid1ou8y7gxulb4m',
targetTableId: 'syqgb3wi47p3yohvlmzzg33xy',
sourceFieldId: 'j01aamwy0pk8svu8q9t099ie5',
targetFieldId: 'y4nz1tesuz1l37ninhadnt8f3',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'twah01qnzc35scnyvdx826s0y',
name: 'djstripe_subscription_plan_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'bols56rjtfid1ou8y7gxulb4m',
targetTableId: 'xl48htp89k7z4hx6s9mfp9hn5',
sourceFieldId: 'pd2105v8h0ig15lv6d3rxkm6v',
targetFieldId: 'bhu6hzogsl5h17h04szu2fa0c',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'u2dmn8hpvwh7q61hir7z4wm1v',
name: 'users_customuser_customer_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'yw2qayl7er339a2ero8m7re5l',
targetTableId: 'syqgb3wi47p3yohvlmzzg33xy',
sourceFieldId: 'dl0w1qi9ywa4mzaobnt053o0l',
targetFieldId: 'y4nz1tesuz1l37ninhadnt8f3',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'u9ts8ei50i10idy3euw9ra5zc',
name: 'teams_invitation_accepted_by_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'eb4m48j6ldckyql3f88ueairp',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: '638vdsj8432ddv9knz07rb4z8',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'z6en7berz1pmbakbpb5nqmnpd',
name: 'teams_invitation_team_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: 'eb4m48j6ldckyql3f88ueairp',
targetTableId: 'z1j413wkm5l6t6t3jnf3806j4',
sourceFieldId: 'tn9tu5178inn45tf462wyqipt',
targetFieldId: 'ent3bq2vqll0mmjqfi1lpfsw8',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'z9rcoedgd1hof6fw61j6z9i79',
name: 'users_customuser_groups_group_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: '30gh7p4kkj4goo8nu9rv0w185',
targetTableId: 'p7bkkch9svcpvfix5kbou3o78',
sourceFieldId: 'a0uoxmzwco6tjmmuxpfstwt8d',
targetFieldId: 'zmo7af8gjk3j9523muwnfh273',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'zu2i5w8kyve8hiagwlwqfco8s',
name: 'users_customuser_groups_customuser_id_foreign',
sourceSchema: 'public',
targetSchema: 'public',
sourceTableId: '30gh7p4kkj4goo8nu9rv0w185',
targetTableId: 'yw2qayl7er339a2ero8m7re5l',
sourceFieldId: 'f3mqibc2jemth8erkrm4pcpfc',
targetFieldId: 'h7tboik3glznqfvf55fehwssz',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
],
dependencies: [],
},
};