diff --git a/src/assets/templates/deployer-db-dark.png b/src/assets/templates/deployer-db-dark.png new file mode 100644 index 00000000..0b70e96d Binary files /dev/null and b/src/assets/templates/deployer-db-dark.png differ diff --git a/src/assets/templates/deployer-db.png b/src/assets/templates/deployer-db.png new file mode 100644 index 00000000..a818fe3e Binary files /dev/null and b/src/assets/templates/deployer-db.png differ diff --git a/src/assets/templates/devise-db-dark.png b/src/assets/templates/devise-db-dark.png new file mode 100644 index 00000000..6ebf4aa3 Binary files /dev/null and b/src/assets/templates/devise-db-dark.png differ diff --git a/src/assets/templates/devise-db.png b/src/assets/templates/devise-db.png new file mode 100644 index 00000000..d1751094 Binary files /dev/null and b/src/assets/templates/devise-db.png differ diff --git a/src/assets/templates/reversion-db-dark.png b/src/assets/templates/reversion-db-dark.png new file mode 100644 index 00000000..48e3062b Binary files /dev/null and b/src/assets/templates/reversion-db-dark.png differ diff --git a/src/assets/templates/reversion-db.png b/src/assets/templates/reversion-db.png new file mode 100644 index 00000000..d3976b31 Binary files /dev/null and b/src/assets/templates/reversion-db.png differ diff --git a/src/assets/templates/screeenly-db-dark.png b/src/assets/templates/screeenly-db-dark.png new file mode 100644 index 00000000..cc1effae Binary files /dev/null and b/src/assets/templates/screeenly-db-dark.png differ diff --git a/src/assets/templates/screeenly-db.png b/src/assets/templates/screeenly-db.png new file mode 100644 index 00000000..e9c4b3b4 Binary files /dev/null and b/src/assets/templates/screeenly-db.png differ diff --git a/src/assets/templates/staytus-db-dark.png b/src/assets/templates/staytus-db-dark.png new file mode 100644 index 00000000..78b33f62 Binary files /dev/null and b/src/assets/templates/staytus-db-dark.png differ diff --git a/src/assets/templates/staytus-db.png b/src/assets/templates/staytus-db.png new file mode 100644 index 00000000..2a6a45d4 Binary files /dev/null and b/src/assets/templates/staytus-db.png differ diff --git a/src/assets/templates/talk-db-dark.png b/src/assets/templates/talk-db-dark.png new file mode 100644 index 00000000..2191e6d0 Binary files /dev/null and b/src/assets/templates/talk-db-dark.png differ diff --git a/src/assets/templates/talk-db.png b/src/assets/templates/talk-db.png new file mode 100644 index 00000000..ef405405 Binary files /dev/null and b/src/assets/templates/talk-db.png differ diff --git a/src/templates-data/templates-data.ts b/src/templates-data/templates-data.ts index 68d114be..405fae34 100644 --- a/src/templates-data/templates-data.ts +++ b/src/templates-data/templates-data.ts @@ -37,6 +37,12 @@ import { doorkeeperDb } from './templates/doorkeeper-db'; import { orchidDb } from './templates/orchid-db'; import { flipperDb } from './templates/flipper-db'; import { cachetDb } from './templates/cachet-db'; +import { reversionDb } from './templates/reversion-db'; +import { screeenlyDb } from './templates/screeenly-db'; +import { staytusDb } from './templates/staytus-db'; +import { deployerDb } from './templates/deployer-db'; +import { deviseDb } from './templates/devise-db'; +import { talkDb } from './templates/talk-db'; export interface Template { slug: string; name: string; @@ -89,4 +95,10 @@ export const templates: Template[] = [ orchidDb, flipperDb, cachetDb, + reversionDb, + screeenlyDb, + staytusDb, + deployerDb, + deviseDb, + talkDb, ]; diff --git a/src/templates-data/templates/deployer-db.ts b/src/templates-data/templates/deployer-db.ts new file mode 100644 index 00000000..79e6f46c --- /dev/null +++ b/src/templates-data/templates/deployer-db.ts @@ -0,0 +1,3491 @@ +import { DatabaseType } from '@/lib/domain/database-type'; +import type { Template } from '../templates-data'; +import image from '@/assets/templates/deployer-db.png'; +import imageDark from '@/assets/templates/deployer-db-dark.png'; + +export const deployerDb: Template = { + slug: 'deployer-database', + name: 'Deployer', + shortDescription: 'PHP application deployment tool', + description: 'A free, open-source tool for deploying PHP apps via SSH.', + image, + imageDark, + tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'], + featured: false, + url: 'https://github.com/REBELinBLUE/deployer', + diagram: { + id: 'deployer_db', + name: 'deployer-database', + createdAt: new Date(), + updatedAt: new Date(), + databaseType: DatabaseType.POSTGRESQL, + tables: [ + { + id: '465j64mlgnsama3os7a7j1hjz', + name: 'channels', + schema: 'public', + x: -300, + y: 100.00000000000006, + fields: [ + { + id: 'f9ohc9qid17dyg4fk4gm4qakr', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'w0ujjkrbxeoyt4psu3h6zvh9z', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '20f03j1ilhb5c48devhclwgbv', + name: 'type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '4bbk90orgefkx6h4jii2ww2qc', + name: 'config', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'zzeso9fxf4uggc7wdgiips5dz', + name: 'on_deployment_success', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'vyfijbvou7el89bw1hkh0q7vn', + name: 'on_deployment_failure', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ovqo2c24s50914zukt1s027xx', + name: 'on_link_down', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'la62q4okxmvlynrz0a1w8w1qz', + name: 'on_link_still_down', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'eju69l18qxjlltk9ep3wio3u3', + name: 'on_link_recovered', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '1u3y1vnuarxteq2of21abccjv', + name: 'on_heartbeat_missing', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'eldjrnuzm613h55fwl0xalve6', + name: 'on_heartbeat_still_missing', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ezvhjzambxbo77qijn3blhyv8', + name: 'on_heartbeat_recovered', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'xewhfw32n77giqz0y7331e7ls', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'd2sej8leigfuk9qz3kz3u9luf', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'wejwvkib226czg4xa9dwwyukb', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'bu3bnfxnn5bvhy4vzmzpu1o92', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'mx76f39n2hlsqxmuuw3enepdv', + name: 'channels_pkey', + unique: true, + fieldIds: ['f9ohc9qid17dyg4fk4gm4qakr'], + createdAt: Date.now(), + }, + { + id: 'emxl4y5if7fyavysocz73qy8q', + name: 'channels_project_id_index', + unique: false, + fieldIds: ['xewhfw32n77giqz0y7331e7ls'], + createdAt: Date.now(), + }, + ], + color: '#8a61f5', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '4sckpwe6zumhst9t7h8i1pskp', + name: 'failed_jobs', + schema: 'public', + x: -280, + y: 880, + fields: [ + { + id: '60ksc3wytc35otv61a9odm15n', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'erhnshvxqdwiyhqiciqgp378i', + name: 'connection', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'czrmlgydjadiy6qvuel3j0vc5', + name: 'queue', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'o7r6e29mxhx8zp9nqrpsyk43l', + name: 'payload', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '5jmqorw01d0gtl7hkm2uah53k', + name: 'exception', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'b1n4bx3elscdg2iy1zw3jrd3c', + name: 'failed_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 't04oknmi4oro9vdb2v76lyx64', + name: 'failed_jobs_pkey', + unique: true, + fieldIds: ['60ksc3wytc35otv61a9odm15n'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '668m05ywooy1d3jvd3ykle06m', + name: 'variables', + schema: 'public', + x: 1300, + y: 1200, + fields: [ + { + id: 'xhwlb3b6385opzdsf83q1r3sy', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'nu8nxrayqvzy8gn02gjedifvi', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'bwn6vcupve5dqprw9uutiumx5', + name: 'value', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'd691gosews2s22kqnhpj5uawe', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'up03wyi4fftgy4dfj09wintkb', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'hpr64r4a546h0vt3cp3e2whew', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '3tut5numf9cpf5vz89two05dg', + name: 'target_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'qq461115etnocsxjfx129txhu', + name: 'target_type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'w3qpwfyf8ynecgvcobewij2yg', + name: 'variables_pkey', + unique: true, + fieldIds: ['xhwlb3b6385opzdsf83q1r3sy'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '83f6ta7tno3xl4m8s2bjp5ke3', + name: 'groups', + schema: 'public', + x: 100.00000000000003, + y: 600, + fields: [ + { + id: 'hyahsmgodjbbdvwjbjbcm3xp8', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ot6t6rrsb9uw4ehx5il4y4yra', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'sy3sx62w71urgdii4rw5y45g6', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'pdojjhpzkykx3jhbui2m346y4', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '5t3huzzoezlrqk41fjwdz6kst', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '5drjb5wh7an7jtr4dr3te06c3', + name: 'order', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'olyp36e1hwyyaxz0hx8ir0txs', + name: 'groups_pkey', + unique: true, + fieldIds: ['hyahsmgodjbbdvwjbjbcm3xp8'], + createdAt: Date.now(), + }, + ], + color: '#ff9f74', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '8ekqpasxd43b67bwbchapufv6', + name: 'refs', + schema: 'public', + x: -288.9087296526011, + y: 559.619407771256, + fields: [ + { + id: 'kul7rlewjq4slyti1vo4oolph', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'me0q2tjgd7pf0q9mnt8qs63mr', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'x5158o1i6j9v5dgmyvs51g7fn', + name: 'is_tag', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'f6cbm8ih1bqhxm2m3mp804lar', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ei2edtakgygn01psh5mjpt2sf', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ghmagc4sz49vza07hw35nuen6', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '6m0dlg968dqplkgkrz7lepho3', + name: 'refs_pkey', + unique: true, + fieldIds: ['kul7rlewjq4slyti1vo4oolph'], + createdAt: Date.now(), + }, + { + id: 'el5o4omy6kar0oa1ql357t75n', + name: 'refs_project_id_index', + unique: false, + fieldIds: ['f6cbm8ih1bqhxm2m3mp804lar'], + createdAt: Date.now(), + }, + ], + color: '#7175fa', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '90v9edq3zd7rq8phnkjw4ocwd', + name: 'command_server', + schema: 'public', + x: 2100, + y: 100, + fields: [ + { + id: '2qddf7umetiwnhkrdyxih0wnh', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'dkvfh3do6fumn7lz22boj4y85', + name: 'command_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '5v2fbrkkqzh4wz2s8uv9qm3mh', + name: 'server_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'sqf4busfw9538g1ns6e4tij56', + name: 'command_server_pkey', + unique: true, + fieldIds: ['2qddf7umetiwnhkrdyxih0wnh'], + createdAt: Date.now(), + }, + { + id: 'c0wjm8pivlpa16nxxhyq90ar6', + name: 'command_server_command_id_index', + unique: false, + fieldIds: ['dkvfh3do6fumn7lz22boj4y85'], + createdAt: Date.now(), + }, + { + id: '1gzdbjl4yl6p34nhficno4lp8', + name: 'command_server_server_id_index', + unique: false, + fieldIds: ['5v2fbrkkqzh4wz2s8uv9qm3mh'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'by1dj4sn6h8a6wsmk0c79pbpj', + name: 'password_resets', + schema: 'public', + x: 100, + y: 1200, + fields: [ + { + id: 'kkkeybrhauoobprch0lsezfnn', + name: 'email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'a9yh0petpzba1wyzp8tfr2c0t', + name: 'token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'eoi8m5wh7z1i9b6j7rgdfy279', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'dbuxhw1qv9g53izkqrq346xao', + name: 'password_resets_email_index', + unique: false, + fieldIds: ['kkkeybrhauoobprch0lsezfnn'], + createdAt: Date.now(), + }, + { + id: 'dcl3jfu3jvouj78ys18ggnxe8', + name: 'password_resets_token_index', + unique: false, + fieldIds: ['a9yh0petpzba1wyzp8tfr2c0t'], + createdAt: Date.now(), + }, + ], + color: '#4dee8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'desr6l3or0z0c23d1ansyqx2g', + name: 'servers', + schema: 'public', + x: 500, + y: 100, + fields: [ + { + id: 'qq2rhrpwjvhhklv3s4o2kbgr2', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '3nzzfdv4jlta4833jitnl7e5r', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'u3yfpawdasvpi987r2n531nmb', + name: 'ip_address', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'tob50lhfpku3jhu4tixxi8v6g', + name: 'user', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ri26abjufzczkwsxq9a38ya4k', + name: 'path', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'hdybkjnde6w7m5jgj783djqh8', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'x4z9vbcso7930p0iynmzfw7qy', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ef36657p8f0wfg37ktk5y0tae', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'cwqxzt027t3qae3vae75wzfrh', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'dhui8vu1bu16xwdviydje9f5h', + name: 'deploy_code', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'c7gs9240vp3zqe6pjhk5ahsy4', + name: 'port', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'atcc08gro2f2mzow96m9ny9gw', + name: 'order', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'kkqu466mac920xctbbyev3ar5', + name: 'status', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'o9nso9siq5b5tcudu0advqof2', + name: 'connect_log', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'udyfiwv082ps6cdl4xv5q7146', + name: 'servers_project_id_index', + unique: false, + fieldIds: ['hdybkjnde6w7m5jgj783djqh8'], + createdAt: Date.now(), + }, + { + id: 'a530ansy60i6zx42dsfagcmd2', + name: 'servers_pkey', + unique: true, + fieldIds: ['qq2rhrpwjvhhklv3s4o2kbgr2'], + createdAt: Date.now(), + }, + ], + color: '#9ef07a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'ief2h0y7swg8st594je9124fw', + name: 'heartbeats', + schema: 'public', + x: -288.9087296526012, + y: -359.61940777125585, + fields: [ + { + id: 'b8ke1pyvlizh4ku7p2i9kc08y', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'kgfzy8uwrwwadmebqo72m5lr3', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '5z4aasnbcsbgoqdh2p57ln7cz', + name: 'hash', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ipu1gtrw0y2kjn8paqysr72tg', + name: 'interval', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'pypbq33v4r496r3kgxz7bfjip', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'eo0s6yync2gf3qkpwm6wkhqxl', + name: 'missed', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'lofl0hvkrrtvt0ykqsyxmgkrf', + name: 'last_activity', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ry5tw7b9k32nbq7ped8t7e54u', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'rxq81opnb400476ponqkr6778', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'j6b2ykkfoc9rrq2xdbg7wtcme', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'foslfndynm8330guzxtk2tj39', + name: 'status', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'dey3cpg7z8apwctm644pq9zq9', + name: 'heartbeats_project_id_index', + unique: false, + fieldIds: ['pypbq33v4r496r3kgxz7bfjip'], + createdAt: Date.now(), + }, + { + id: 'gsz76qqozjqhtrch9dj0ez7k3', + name: 'heartbeats_hash_unique', + unique: true, + fieldIds: ['5z4aasnbcsbgoqdh2p57ln7cz'], + createdAt: Date.now(), + }, + { + id: 'kdd9rw3n0dv3amtzvxe292sd7', + name: 'heartbeats_pkey', + unique: true, + fieldIds: ['b8ke1pyvlizh4ku7p2i9kc08y'], + createdAt: Date.now(), + }, + ], + color: '#ff6363', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'ki5aps07cdlght6ys91p9x2d1', + name: 'migrations', + schema: 'public', + x: -300, + y: 1200, + fields: [ + { + id: '67c823vl6lizfag4v4toyd0n3', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'qoelfwxi0lkzmlbmrscet58ow', + name: 'migration', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'kj1e6wz46614rn7jj4hyphikt', + name: 'batch', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'oz8skdvfbztgpo864wnhjsgvt', + name: 'migrations_pkey', + unique: true, + fieldIds: ['67c823vl6lizfag4v4toyd0n3'], + createdAt: Date.now(), + }, + ], + color: '#ff6363', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'lp5s8bi7ni72guc0vwh8o6gs0', + name: 'templates', + schema: 'public', + x: 900, + y: 1200, + fields: [ + { + id: '2t7owqo4fsto4r26pxjwjjb7c', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'mq0dg9476sdcxepsp2yirjoxw', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '7g4u3aw3vjh3oma5hia0qsmz7', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'hfxwlng31qpce6a4mprfqj0fz', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'g974ghkr7u7fdbrh9o75siowd', + name: 'templates_pkey', + unique: true, + fieldIds: ['2t7owqo4fsto4r26pxjwjjb7c'], + createdAt: Date.now(), + }, + ], + color: '#4dee8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'p6nk5ljrh7p1xttixpggfpdx3', + name: 'shared_files', + schema: 'public', + x: 500, + y: 1200, + fields: [ + { + id: '70nl315pusofdktxzhlubkghs', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'pex5yoppzwshpxv076rlfnamq', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'gvxd18xwhs0vwwale540q2gl4', + name: 'file', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '8dtmbf3qkekv4aiixmd3d7z6a', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'rc9706f0rx0zlde7bhxhbsugq', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '3nffw7zcm0kp4dm6d0yjt2kgh', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'txxr53re5d5nwg2glfx2ll7yb', + name: 'target_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'u23mzo1yzlophci0s3xt3is7p', + name: 'target_type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'gtbv79irgu7b6l6sinvnbt0jf', + name: 'shared_files_pkey', + unique: true, + fieldIds: ['70nl315pusofdktxzhlubkghs'], + createdAt: Date.now(), + }, + ], + color: '#4dee8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'pqd5s6rgzx6cu3ywlw39kq0v6', + name: 'users', + schema: 'public', + x: 1500, + y: 533.0127018922194, + fields: [ + { + id: 'jsndkkz9rla8koso6lol9nbce', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '9c6qnuff64asw24rp8fnc5mlq', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'xpyptecfk6ygv3i38jt0y9m9y', + name: 'email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '5pdwt81k2chxzyggt7rm5g4ql', + name: 'password', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'lb0bd56ey88looe8wbeixs9pj', + name: 'is_admin', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'wg8oe5szaknpt8m6qcyrkk1h7', + name: 'remember_token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'jky8p8v2m2n3tklyqdhspbzeq', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'rwrs6skwazavg8fx1sl3ikt2c', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'duy9ja33pzjge3vhq5p3oetin', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'li0vthextg0v7btajecyow2r9', + name: 'email_token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '9kx4l30g8cvqp6fdmiklgzs9c', + name: 'avatar', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'sinhi7ku7trenkpjbmtzurlpd', + name: 'language', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '4l21nrrxomksd95nhvid6xmhi', + name: 'skin', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'jegfha3j0c3em366jxwbevdqi', + name: 'google2fa_secret', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'byoc0ydw6mait47xt0rw6m43c', + name: 'scheme', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'uopqj9d7kxkvxtcf8znkuzkec', + name: 'users_pkey', + unique: true, + fieldIds: ['jsndkkz9rla8koso6lol9nbce'], + createdAt: Date.now(), + }, + { + id: 'xaz0s54tti7fvr9ftzyp7vr47', + name: 'users_email_token_index', + unique: false, + fieldIds: ['li0vthextg0v7btajecyow2r9'], + createdAt: Date.now(), + }, + { + id: 'ptf01f1hw8f6ihp8o9c9zx0a7', + name: 'users_email_unique', + unique: true, + fieldIds: ['xpyptecfk6ygv3i38jt0y9m9y'], + createdAt: Date.now(), + }, + ], + color: '#42e0c0', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'ps22x2kkk4oxnmr390u0z4e2u', + name: 'projects', + schema: 'public', + x: 100, + y: 100, + fields: [ + { + id: 'qvai36lavgafbnt9fk6uoc33z', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'fyi0sstd6ldeckdv8pqeudh5h', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'iplg3da87qoq23zapp6r276gf', + name: 'repository', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'pqfcuc8p6pq7jaz0j5fudbo70', + name: 'hash', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '8ghwhk4rz10kokepr6ylbswac', + name: 'branch', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'h4fql3x0giql538l8zsep4b1v', + name: 'private_key', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'eq4sptjq9fs6m34xqvkwfhpa8', + name: 'public_key', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '1vv1d2jtgyl3121sedrn5bvnv', + name: 'group_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '7rbkt46kvmx74g6nrngdhmw4j', + name: 'builds_to_keep', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'zhei4u1qmzw4se56fgnj4hmzb', + name: 'url', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'mdsduzx9a938tc6k0rull48li', + name: 'build_url', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'j9qmv4nugajga6ywl6smajuk3', + name: 'last_run', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'lehdg7hhsfd08lnyzue7dm73d', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ageh7uq1cs7h53n4mtmzr7jp8', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'guuqk8jcvwmxs763byw1jpy7r', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'y9uyilnkl29a8dcogbx04rr3w', + name: 'last_mirrored', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'qoiaw73ua4vrp5rnvdku003fp', + name: 'allow_other_branch', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 't7yrihunfv323t7o4939bspjr', + name: 'include_dev', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '6kv0xuhna29a5aihbqfpxjrde', + name: 'status', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'wixtri3jqs87c1pyt3qm9ef16', + name: 'is_mirroring', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'inceecsxpoe7mplt63drrwp18', + name: 'projects_pkey', + unique: true, + fieldIds: ['qvai36lavgafbnt9fk6uoc33z'], + createdAt: Date.now(), + }, + { + id: '11w4uo4tr5s7va6ghtithc3hk', + name: 'projects_group_id_index', + unique: false, + fieldIds: ['1vv1d2jtgyl3121sedrn5bvnv'], + createdAt: Date.now(), + }, + ], + color: '#9ef07a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'pwzd87oqecg4l4rq2tp56x0hr', + name: 'deploy_steps', + schema: 'public', + x: 1300, + y: 100, + fields: [ + { + id: 'qrd4301pg0ii4c90xkps23fft', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'mrh66tb8k25f6tzprpt300fp5', + name: 'deployment_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'f7xwt7znbzpq3pokoilxw16a0', + name: 'stage', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'yg3dwigysv7te3n32nr14ei0y', + name: 'command_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'mu8tundia5l03b6v67ensw7iy', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'klwfkpyxxf9k80o607dxmae3m', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'b1190nb9pcc8ot2ljgym7wi7l', + name: 'deploy_steps_deployment_id_index', + unique: false, + fieldIds: ['mrh66tb8k25f6tzprpt300fp5'], + createdAt: Date.now(), + }, + { + id: 'cdj3aw73ylnpkr80dbfkrf6yx', + name: 'deploy_steps_command_id_index', + unique: false, + fieldIds: ['yg3dwigysv7te3n32nr14ei0y'], + createdAt: Date.now(), + }, + { + id: 'h0p0qsiuyrxebv573d0t7587d', + name: 'deploy_steps_pkey', + unique: true, + fieldIds: ['qrd4301pg0ii4c90xkps23fft'], + createdAt: Date.now(), + }, + ], + color: '#ffe374', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'sfdme1amyqw7ai072wfubwb3o', + name: 'config_files', + schema: 'public', + x: -640, + y: 600, + fields: [ + { + id: '7n3i54fc5n80bn3y9tlcxs2mp', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '712jblkxc6jeim1e0yn3sg8dz', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '6l9g5wshz8xlhhg7wjhdb8oap', + name: 'path', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'wqflnhfeyesdspe09ru2p3873', + name: 'content', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'kd9dgwwui6uyt49rahaq65qdk', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '5djhn10k3jntrkl1pk570ymsp', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'vr83em6zzku098axns8nzjms8', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '3uml7owrvyev155o70qkhbmos', + name: 'target_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'yn58bta9wpgoiq1mpy140r8cz', + name: 'target_type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '5jpvcd4l5k35qz39cbaxwlt5p', + name: 'config_files_pkey', + unique: true, + fieldIds: ['7n3i54fc5n80bn3y9tlcxs2mp'], + createdAt: Date.now(), + }, + ], + color: '#7175fa', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'uvy6shi1n0rij8kig2cz7nia9', + name: 'check_urls', + schema: 'public', + x: 488.90872965260115, + y: 559.6194077712559, + fields: [ + { + id: 'bdt7blpncponaskuo0q13jglt', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '3if0zpa3bthvrkn4utw7ir5jy', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ly2lzq9f2oeu705635fqkcom3', + name: 'url', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '3onfmj2f6s4li4quh6f1cbxlt', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '9ufigmmqcj48o4wmnrllz8ck6', + name: 'period', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ra3f0eehakj73h1922lfba6o7', + name: 'match', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'rsequf8fu0d1cdxk2jfguu61h', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '28mepxebgcuetdnt6yk3dw797', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'rntyodgj67izun2vb64g2z0nz', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'mhp3209pemo4jlvoc7vhutbzp', + name: 'missed', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'wpbg5uc2evxzsfhgxdhgzi4nz', + name: 'last_seen', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'tizg515puiq7fq3ztz0pn4ugd', + name: 'status', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'lvlx8qc8akqvp2y5rwan4siuw', + name: 'last_log', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '95cxrv5u9owaj0hq3lji05sn4', + name: 'check_urls_period_index', + unique: false, + fieldIds: ['9ufigmmqcj48o4wmnrllz8ck6'], + createdAt: Date.now(), + }, + { + id: '2f7xl209otl2fjnqwc3aojgiw', + name: 'check_urls_pkey', + unique: true, + fieldIds: ['bdt7blpncponaskuo0q13jglt'], + createdAt: Date.now(), + }, + { + id: 'mxbnm8hnucxlgmj8h4h6hlffk', + name: 'check_urls_project_id_index', + unique: false, + fieldIds: ['3onfmj2f6s4li4quh6f1cbxlt'], + createdAt: Date.now(), + }, + ], + color: '#8a61f5', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'x2uxvr8yca09478tcktky2kyq', + name: 'deployments', + schema: 'public', + x: 1100, + y: 533.0127018922194, + fields: [ + { + id: 'g1bmdm0zj362yf440fx0xjfax', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'o6sw3khm9nutebzshexx7zmn4', + name: 'committer', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'i6fm7331mm447n6l8tsehzdgb', + name: 'committer_email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'srlp98i4pn43z9tuuvg42rged', + name: 'commit', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'lyjm94wk3xqyzxw9mqc4oy1vp', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '0lrf89e48bco9t01trcjtvosd', + name: 'user_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'qy4iii9af770ec67k620cqu99', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'mlvpesvboktf0zg62yrrgly39', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'e0sm63fzqrl7epm59mq33apy8', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '77y5z5klgy0e1n9pqarogoew0', + name: 'started_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '0nriccox43woyibdtq06f3s50', + name: 'finished_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'wnns9xqlqhhqpjl4kl9dvauoh', + name: 'reason', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '7nvjaqvr46iartu1uuy4x2h7e', + name: 'branch', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '5ygfpknig1fu31l5xu5ylkcqa', + name: 'is_webhook', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '8f67xayjk7v2th3bw8dpnvepr', + name: 'source', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'zmicimtk45kk50ylsbxgb9g2h', + name: 'build_url', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'r2aniic4oxdd502pq6ycm8i6y', + name: 'status', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'maby4lw00uue3iz4huj6ru404', + name: 'deployments_project_id_index', + unique: false, + fieldIds: ['lyjm94wk3xqyzxw9mqc4oy1vp'], + createdAt: Date.now(), + }, + { + id: 'iafcd5ujxgo4sgbfi49zo034u', + name: 'deployments_pkey', + unique: true, + fieldIds: ['g1bmdm0zj362yf440fx0xjfax'], + createdAt: Date.now(), + }, + { + id: 'pjyqagcyv4mzf2ry4j32jbi3z', + name: 'deployments_user_id_index', + unique: false, + fieldIds: ['0lrf89e48bco9t01trcjtvosd'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'yab4uw2i08cmij353j1j4vwgd', + name: 'project_user', + schema: 'public', + x: 1300, + y: 966.0254037844388, + fields: [ + { + id: '0762omzp19axxn9e8ed7c0f9f', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '87b3h3d325mq5sr6g0y8yzut6', + name: 'project_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '85ity9d4lfxix96k1vzulawyd', + name: 'user_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'cxcnc9ewosk00ps1clkxshdo3', + name: 'role', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'z657wdva7ulcnrk77ddn8ugow', + name: 'project_user_project_id_user_id_unique', + unique: true, + fieldIds: [ + '87b3h3d325mq5sr6g0y8yzut6', + '85ity9d4lfxix96k1vzulawyd', + ], + createdAt: Date.now(), + }, + { + id: 'qbzzr0n08iz1gek92pwefut59', + name: 'project_user_pkey', + unique: true, + fieldIds: ['0762omzp19axxn9e8ed7c0f9f'], + createdAt: Date.now(), + }, + { + id: 'ju21214cjx77vm55esu2dtm7o', + name: 'project_user_user_id_index', + unique: false, + fieldIds: ['85ity9d4lfxix96k1vzulawyd'], + createdAt: Date.now(), + }, + ], + color: '#42e0c0', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'ycd3l8y48o5dw8ptudqixsozu', + name: 'commands', + schema: 'public', + x: 1700, + y: 100, + fields: [ + { + id: '5o77yqf9hen4eueflmok3z79d', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'fq6f7p5nbh4veumso7uc91gn5', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'fhsap82lbmi5dq3s9qlw0n87g', + name: 'user', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'vl0tvryhcbivh6890uby261hi', + name: 'script', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'qi7abzlr5sd3g22gcah93nn9p', + name: 'order', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'vj627sxyqqn701tgfx3c8pe4k', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '98w2qow9fh9qjxmrb2gtxowqu', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'gog33ddfjrstom4t2b0qetqnd', + name: 'deleted_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'r9ny3tw6x32cf3l9c8zvoqm3a', + name: 'optional', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ujoapqoa9scjwm9dzjz900909', + name: 'default_on', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'efe5xkh1lsi0509d7oi62c1xc', + name: 'target_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'yb65nzxrrtavx2htbcw1l6p01', + name: 'target_type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '09evlwri3ba5tvbif00q6w3zc', + name: 'step', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '4e52rygz0sharnbej1066i27j', + name: 'commands_pkey', + unique: true, + fieldIds: ['5o77yqf9hen4eueflmok3z79d'], + createdAt: Date.now(), + }, + ], + color: '#ff9f74', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'ydav72qjt9ndoe5hqno3jprgt', + name: 'server_logs', + schema: 'public', + x: 900, + y: 100, + fields: [ + { + id: 'aj7lnisalmjnknei25dmlzsfg', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'is038tee2vwd0u27msarjju1v', + name: 'server_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ggcf7he7zbleuribiwmhv99m6', + name: 'deploy_step_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'tnmls585s0qqm43074q1ddp0w', + name: 'output', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '19qh7fzeizh0r184v15bgabpn', + name: 'started_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '2hdphd5x62k52w4guddtmq095', + name: 'finished_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '5oj1o5two1c94o2i113ytzcwg', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '4rwspbncyv0tkfnwm17hkvbcs', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'qmjqprr8nac8gcdz830u956ex', + name: 'status', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'ljm1rgfszhq09rtwy0ug98s47', + name: 'server_logs_pkey', + unique: true, + fieldIds: ['aj7lnisalmjnknei25dmlzsfg'], + createdAt: Date.now(), + }, + { + id: '37xxjushwiy9xhgar66xwqki3', + name: 'server_logs_server_id_index', + unique: false, + fieldIds: ['is038tee2vwd0u27msarjju1v'], + createdAt: Date.now(), + }, + { + id: 'fanae0vvuuee7swqzqah6j5jv', + name: 'server_logs_deploy_step_id_index', + unique: false, + fieldIds: ['ggcf7he7zbleuribiwmhv99m6'], + createdAt: Date.now(), + }, + ], + color: '#c05dcf', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'yirpknmae7jnm84eo013exaif', + name: 'notifications', + schema: 'public', + x: 1900, + y: 533.0127018922194, + fields: [ + { + id: 'm6nrbwl2gceh2h9mu9p4nz4f3', + name: 'id', + type: { + id: 'character', + name: 'character', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'yy1dhg1zb48i98es8kd6iaovw', + name: 'type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'uhs7x9p3d1qlzikavna0nd5wm', + name: 'notifiable_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'm8di5mmtwvq733fekpamufkqm', + name: 'notifiable_type', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'qcvjhnyunwqxwd4o8kkpbpcdk', + name: 'data', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'l6zcipexgo4cj4kbusedc0kn5', + name: 'read_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'cs6l6sucrayaw049kxwssaepf', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'qqj7ra6gi8mbwbzmzr23noy4z', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'vnihocawxnhqwmlnalbwecbwn', + name: 'notifications_notifiable_id_notifiable_type_index', + unique: false, + fieldIds: [ + 'uhs7x9p3d1qlzikavna0nd5wm', + 'm8di5mmtwvq733fekpamufkqm', + ], + createdAt: Date.now(), + }, + { + id: '375kwjon21h8hsk73n2cww6sf', + name: 'notifications_pkey', + unique: true, + fieldIds: ['m6nrbwl2gceh2h9mu9p4nz4f3'], + createdAt: Date.now(), + }, + ], + color: '#7175fa', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'zc7z9fom9bs9c1ur5f4ylgaf0', + name: 'cache', + schema: 'public', + x: 1600, + y: 1100, + fields: [ + { + id: 'wnrji10edbmdi9yvt4w3lralr', + name: 'key', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'uw9r748bo10c5e09n2jp5k6lp', + name: 'value', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '3yjs0rddyanlf1v8zg9ozb9oe', + name: 'expiration', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'y7s86axg8a6jlibp7g2q68vxt', + name: 'cache_key_unique', + unique: true, + fieldIds: ['wnrji10edbmdi9yvt4w3lralr'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'zmbyu6cupincxfbs1lu2fqb56', + name: 'jobs', + schema: 'public', + x: -700, + y: 1200, + fields: [ + { + id: 'l0fr1fb5ijzd00cywry4ew0aj', + name: 'id', + type: { + id: 'bigint', + name: 'bigint', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'enxt90se3b8g33sxeshro57jr', + name: 'queue', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '0hxeyyuov1eypxv99ki80d61c', + name: 'payload', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'zis2srmwokao5sl9ht2nljf41', + name: 'attempts', + type: { + id: 'smallint', + name: 'smallint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'rczyq4tttg4e1ddcp8gneubiv', + name: 'reserved_at', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'pk0s1rq4ga1trephri6u272ux', + name: 'available_at', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ak09xoubshesounbcxo2mzp4y', + name: 'created_at', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'lt9l3dewhr7bix7o87lklafm2', + name: 'jobs_queue_reserved_at_index', + unique: false, + fieldIds: [ + 'enxt90se3b8g33sxeshro57jr', + 'rczyq4tttg4e1ddcp8gneubiv', + ], + createdAt: Date.now(), + }, + { + id: 'vf458rgcridoywfmywucjapfx', + name: 'jobs_pkey', + unique: true, + fieldIds: ['l0fr1fb5ijzd00cywry4ew0aj'], + createdAt: Date.now(), + }, + ], + color: '#9ef07a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + ], + relationships: [ + { + id: '3tpxj9or3sgerva7n5v92rqtj', + name: 'server_logs_deploy_step_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'ydav72qjt9ndoe5hqno3jprgt', + targetTableId: 'pwzd87oqecg4l4rq2tp56x0hr', + sourceFieldId: 'ggcf7he7zbleuribiwmhv99m6', + targetFieldId: 'qrd4301pg0ii4c90xkps23fft', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: '3xi6f67trl1ki19rm9243zpoj', + name: 'notifications_notifiable_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'yirpknmae7jnm84eo013exaif', + targetTableId: 'pqd5s6rgzx6cu3ywlw39kq0v6', + sourceFieldId: 'uhs7x9p3d1qlzikavna0nd5wm', + targetFieldId: 'jsndkkz9rla8koso6lol9nbce', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'a54lzvfnblnxes6y08a2u4wgi', + name: 'check_urls_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'uvy6shi1n0rij8kig2cz7nia9', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: '3onfmj2f6s4li4quh6f1cbxlt', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'aa500rfclfpr59txu2fvwhjg1', + name: 'project_user_user_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'yab4uw2i08cmij353j1j4vwgd', + targetTableId: 'pqd5s6rgzx6cu3ywlw39kq0v6', + sourceFieldId: '85ity9d4lfxix96k1vzulawyd', + targetFieldId: 'jsndkkz9rla8koso6lol9nbce', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'aejfi8qx1odrkls1kqjqgfgl5', + name: 'project_user_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'yab4uw2i08cmij353j1j4vwgd', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: '87b3h3d325mq5sr6g0y8yzut6', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'az04sfoyj5qys7jrni35wiyzw', + name: 'heartbeats_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'ief2h0y7swg8st594je9124fw', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: 'pypbq33v4r496r3kgxz7bfjip', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'cpn7pgr9iwqtbrokvc8h7j0v2', + name: 'command_server_server_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: '90v9edq3zd7rq8phnkjw4ocwd', + targetTableId: 'desr6l3or0z0c23d1ansyqx2g', + sourceFieldId: '5v2fbrkkqzh4wz2s8uv9qm3mh', + targetFieldId: 'qq2rhrpwjvhhklv3s4o2kbgr2', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'dw763app1boh95v170tzxkosr', + name: 'deploy_steps_deployment_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'pwzd87oqecg4l4rq2tp56x0hr', + targetTableId: 'x2uxvr8yca09478tcktky2kyq', + sourceFieldId: 'mrh66tb8k25f6tzprpt300fp5', + targetFieldId: 'g1bmdm0zj362yf440fx0xjfax', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'e03ox9k94dgbcbs6tyspyx3w0', + name: 'deployments_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'x2uxvr8yca09478tcktky2kyq', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: 'lyjm94wk3xqyzxw9mqc4oy1vp', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'gquymz5738gr6fa5vv3bl7on5', + name: 'projects_group_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + targetTableId: '83f6ta7tno3xl4m8s2bjp5ke3', + sourceFieldId: '1vv1d2jtgyl3121sedrn5bvnv', + targetFieldId: 'hyahsmgodjbbdvwjbjbcm3xp8', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'lbua0flzhj1yoa8t2c934c3fm', + name: 'command_server_command_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: '90v9edq3zd7rq8phnkjw4ocwd', + targetTableId: 'ycd3l8y48o5dw8ptudqixsozu', + sourceFieldId: 'dkvfh3do6fumn7lz22boj4y85', + targetFieldId: '5o77yqf9hen4eueflmok3z79d', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'nfdo6njol6p7p3wiykywqj7px', + name: 'server_logs_server_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'ydav72qjt9ndoe5hqno3jprgt', + targetTableId: 'desr6l3or0z0c23d1ansyqx2g', + sourceFieldId: 'is038tee2vwd0u27msarjju1v', + targetFieldId: 'qq2rhrpwjvhhklv3s4o2kbgr2', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'ofu6jsw4qyb0py1xjb0ksgcw2', + name: 'refs_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: '8ekqpasxd43b67bwbchapufv6', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: 'f6cbm8ih1bqhxm2m3mp804lar', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'qwqsu3xplxoa9kfzzcul3ljm0', + name: 'servers_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'desr6l3or0z0c23d1ansyqx2g', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: 'hdybkjnde6w7m5jgj783djqh8', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'wxakvcy0yqvkf325vs70t2axm', + name: 'channels_project_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: '465j64mlgnsama3os7a7j1hjz', + targetTableId: 'ps22x2kkk4oxnmr390u0z4e2u', + sourceFieldId: 'xewhfw32n77giqz0y7331e7ls', + targetFieldId: 'qvai36lavgafbnt9fk6uoc33z', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'ze4ids0m4ruudsupntxdxpfvw', + name: 'deployments_user_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'x2uxvr8yca09478tcktky2kyq', + targetTableId: 'pqd5s6rgzx6cu3ywlw39kq0v6', + sourceFieldId: '0lrf89e48bco9t01trcjtvosd', + targetFieldId: 'jsndkkz9rla8koso6lol9nbce', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'zngpfczhkh7p2tm8sctydqddx', + name: 'deploy_steps_command_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'pwzd87oqecg4l4rq2tp56x0hr', + targetTableId: 'ycd3l8y48o5dw8ptudqixsozu', + sourceFieldId: 'yg3dwigysv7te3n32nr14ei0y', + targetFieldId: '5o77yqf9hen4eueflmok3z79d', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + ], + dependencies: [], + }, +}; diff --git a/src/templates-data/templates/devise-db.ts b/src/templates-data/templates/devise-db.ts new file mode 100644 index 00000000..6bf0e605 --- /dev/null +++ b/src/templates-data/templates/devise-db.ts @@ -0,0 +1,319 @@ +import { DatabaseType } from '@/lib/domain/database-type'; +import type { Template } from '../templates-data'; +import image from '@/assets/templates/devise-db.png'; +import imageDark from '@/assets/templates/devise-db-dark.png'; + +export const deviseDb: Template = { + slug: 'devise-database', + name: 'Devise', + shortDescription: 'Flexible Auth for Rails applications', + description: + 'Flexible authentication for Rails based on Warden, MVC with 10 modules, including DB Authenticatable, Registerable, and Recoverable.', + image, + imageDark, + tags: ['Postgres', 'Open Source', 'Rails'], + featured: true, + url: 'https://github.com/heartcombo/devise', + diagram: { + id: 'devise_db', + name: 'devise-database', + createdAt: new Date(), + updatedAt: new Date(), + databaseType: DatabaseType.POSTGRESQL, + tables: [ + { + id: 'yha079pwna8c99bb8jawlaej3', + name: 'users', + schema: 'public', + x: 40, + y: 100, + fields: [ + { + id: 'tnnbdv2o6svxuz0wm7yp56rhn', + name: 'id', + type: { + id: 'bigint', + name: 'bigint', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'vkhvag7othohyjh6828ybk3ca', + name: 'email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'wd49z62mufty2emt4ga95vtes', + name: 'encrypted_password', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '1vz318dy43ajqkltguj4cgu8b', + name: 'reset_password_token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: true, + createdAt: Date.now(), + }, + { + id: '8ydqdfy4rhuiediufdhirc160', + name: 'reset_password_sent_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'eukr07x2egs3477q5bi11df0g', + name: 'remember_created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'raxxzuz5nqbuf63628jmdx5ii', + name: 'sign_in_count', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'kb3ao9bj6gjab3y5cdwuc7b58', + name: 'current_sign_in_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'mm4knih0nyvhd4vvy6vr969dk', + name: 'last_sign_in_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'g1y49u7xrq1qu4gvm42f3q25y', + name: 'current_sign_in_ip', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'dutn6db8am2f58u96ou0f4ha3', + name: 'last_sign_in_ip', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ipxhirbm3blfebww69xrq6rfc', + name: 'confirmation_token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'q3robth7nuy6qoyncmkyfd2wr', + name: 'confirmed_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 's0ekzf665nsmkeljo30v36ymq', + name: 'confirmation_sent_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '6lvgbsqnvdamibmbuhfxrvsp6', + name: 'unconfirmed_email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'o29wwqt6ycsubf43yzypd40ua', + name: 'failed_attempts', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '2jbu40xg710e63y9p6l292vhl', + name: 'unlock_token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ribk8hlz1o926iinrs5ohob0s', + name: 'locked_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'q6n7ulzw5qkwr23akuuyd2bzf', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'a4azxp7ry1q743lgeot5pxz0m', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '698pbewk499ajavfw1y50tgb4', + name: 'users_pkey', + unique: true, + fieldIds: ['tnnbdv2o6svxuz0wm7yp56rhn'], + createdAt: Date.now(), + }, + { + id: '3oq1zywey14y8w67kyiork0zf', + name: 'users_email_unique', + unique: true, + fieldIds: ['vkhvag7othohyjh6828ybk3ca'], + createdAt: Date.now(), + }, + { + id: 'jk7nrup4dw6xrx11boprthswy', + name: 'users_reset_password_token_unique', + unique: true, + fieldIds: ['1vz318dy43ajqkltguj4cgu8b'], + createdAt: Date.now(), + }, + { + id: 'rh4czfl0w3nzd5xuqnx6bi9vx', + name: 'users_unlock_token_unique', + unique: true, + fieldIds: ['2jbu40xg710e63y9p6l292vhl'], + createdAt: Date.now(), + }, + { + id: 'h5vv3jzsud0eeon3xs60xc651', + name: 'users_confirmation_token_unique', + unique: true, + fieldIds: ['ipxhirbm3blfebww69xrq6rfc'], + createdAt: Date.now(), + }, + ], + color: '#4dee8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + width: 337, + }, + ], + relationships: [], + dependencies: [], + }, +}; diff --git a/src/templates-data/templates/orchid-db.ts b/src/templates-data/templates/orchid-db.ts index 69b6e6ba..53c64dd0 100644 --- a/src/templates-data/templates/orchid-db.ts +++ b/src/templates-data/templates/orchid-db.ts @@ -13,7 +13,7 @@ export const orchidDb: Template = { imageDark, tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'], featured: false, - url: 'https://drawsql.app/templates/orchid', + url: 'https://github.com/orchidsoftware/platform', diagram: { id: 'orchid_db', name: 'orchid-database', diff --git a/src/templates-data/templates/reversion-db.ts b/src/templates-data/templates/reversion-db.ts new file mode 100644 index 00000000..b78c05bf --- /dev/null +++ b/src/templates-data/templates/reversion-db.ts @@ -0,0 +1,343 @@ +import { DatabaseType } from '@/lib/domain/database-type'; +import type { Template } from '../templates-data'; +import image from '@/assets/templates/reversion-db.png'; +import imageDark from '@/assets/templates/reversion-db-dark.png'; + +export const reversionDb: Template = { + slug: 'reversion-database', + name: 'Reversion', + shortDescription: 'Version control for model instances', + description: + 'Django extension that provides version control for model instances, allowing you to roll back to any point in a model history and recover deleted instances.', + image, + imageDark, + tags: ['Postgres', 'Python', 'Django'], + featured: true, + url: 'https://github.com/etianen/django-reversion', + diagram: { + id: 'reversion_db', + name: 'reversion-database', + createdAt: new Date(), + updatedAt: new Date(), + databaseType: DatabaseType.POSTGRESQL, + tables: [ + { + id: '5vbs1o9jcijqaos2r7ufyf3qk', + name: 'django_content_type', + schema: 'public', + x: 813.8339153520599, + y: -167.89819045086784, + fields: [ + { + id: 'fz4jkfpns4wgyfdyhw51smsk0', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'pl9jzcxgahlfkkigj9ftgp99m', + name: 'django_content_type_pkey', + unique: true, + fieldIds: ['fz4jkfpns4wgyfdyhw51smsk0'], + createdAt: Date.now(), + }, + ], + color: '#7175fa', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '97rot1dndzf83yt3armaynm66', + name: 'reversion_version', + schema: 'public', + x: 453.0003174647601, + y: -161.63156611283586, + fields: [ + { + id: 'oekrmcccwzb4m7yr14sve140y', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '5rcck5wqsezl9mr8y6vwbj9nu', + name: 'object_id', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'v3ek62rrsh8gdtr7jpnuremi3', + name: 'format', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'qs80fnu5l0my70mqr8wrxhxpi', + name: 'serialized_data', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '1tl6ctq3orl37as2egw6as7l2', + name: 'object_repr', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '754680oc0l4vnc1cltlg2u6j5', + name: 'content_type_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '4zgrxtfln1vbn11g1fksoi71n', + name: 'revision_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'poog75wj64fgrb3q1llpb5iua', + name: 'db', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'dl89wmn0ubu9wtxgcz3lfgwr5', + name: 'reversion_version_db_content_type_id_object_id_revision_id_uniq', + unique: true, + fieldIds: [ + 'poog75wj64fgrb3q1llpb5iua', + '754680oc0l4vnc1cltlg2u6j5', + '5rcck5wqsezl9mr8y6vwbj9nu', + '4zgrxtfln1vbn11g1fksoi71n', + ], + createdAt: Date.now(), + }, + { + id: 'zt2sezsi9e79znlazfd321ld3', + name: 'reversion_version_pkey', + unique: true, + fieldIds: ['oekrmcccwzb4m7yr14sve140y'], + createdAt: Date.now(), + }, + ], + color: '#ff6363', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'hlsk0icz2mso3czxx45g7dcbj', + name: 'auth_user', + schema: 'public', + x: -216.9672275210761, + y: 92.16671957746007, + fields: [ + { + id: 'yrh05ijpg4e0g0catmqipbs0b', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '0oklodaz95u913bl53xfw2cgw', + name: 'auth_user_pkey', + unique: true, + fieldIds: ['yrh05ijpg4e0g0catmqipbs0b'], + createdAt: Date.now(), + }, + ], + color: '#ff6363', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'm2bz2erjdddq1gkllitzz85lf', + name: 'reversion_revision', + schema: 'public', + x: 100, + y: -191.39803171848786, + fields: [ + { + id: 'n4ck81ah0i122hwo1temykxov', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ktyja9ud79wjeyow1e6oqtf9y', + name: 'date_created', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'slkveui0isgbxsm0ovktp7p4o', + name: 'comment', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'l27mx98db22pvpl9wx6a6aptx', + name: 'user_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'u3rbquia5fbikru96pheubqph', + name: 'reversion_revision_date_created_index', + unique: false, + fieldIds: ['ktyja9ud79wjeyow1e6oqtf9y'], + createdAt: Date.now(), + }, + { + id: 'w7eva3mrl7taqschfapaf85sh', + name: 'reversion_revision_pkey', + unique: true, + fieldIds: ['n4ck81ah0i122hwo1temykxov'], + createdAt: Date.now(), + }, + ], + color: '#ffe374', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + ], + relationships: [ + { + id: '54riti2nvt8xb6bcpg4ctyz8f', + name: 'reversion_version_revision_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: '97rot1dndzf83yt3armaynm66', + targetTableId: 'm2bz2erjdddq1gkllitzz85lf', + sourceFieldId: '4zgrxtfln1vbn11g1fksoi71n', + targetFieldId: 'n4ck81ah0i122hwo1temykxov', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'bl05eigbvn8h4rsey6ugs949n', + name: 'reversion_version_content_type_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: '97rot1dndzf83yt3armaynm66', + targetTableId: '5vbs1o9jcijqaos2r7ufyf3qk', + sourceFieldId: '754680oc0l4vnc1cltlg2u6j5', + targetFieldId: 'fz4jkfpns4wgyfdyhw51smsk0', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'uneee946ch7dq8e6djh40sigv', + name: 'reversion_revision_user_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'm2bz2erjdddq1gkllitzz85lf', + targetTableId: 'hlsk0icz2mso3czxx45g7dcbj', + sourceFieldId: 'l27mx98db22pvpl9wx6a6aptx', + targetFieldId: 'yrh05ijpg4e0g0catmqipbs0b', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + ], + dependencies: [], + }, +}; diff --git a/src/templates-data/templates/screeenly-db.ts b/src/templates-data/templates/screeenly-db.ts new file mode 100644 index 00000000..7d93f5d4 --- /dev/null +++ b/src/templates-data/templates/screeenly-db.ts @@ -0,0 +1,536 @@ +import { DatabaseType } from '@/lib/domain/database-type'; +import type { Template } from '../templates-data'; +import image from '@/assets/templates/screeenly-db.png'; +import imageDark from '@/assets/templates/screeenly-db-dark.png'; + +export const screeenlyDb: Template = { + slug: 'screeenly-database', + name: 'Screeenly', + shortDescription: 'Capturing high-quality website screenshots', + description: + 'An open-source web application that provides a simple API for generating website screenshots.', + image, + imageDark, + tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'], + featured: false, + url: 'https://github.com/stefanzweifel/screeenly', + diagram: { + id: 'screeenly_db', + name: 'screeenly-database', + createdAt: new Date(), + updatedAt: new Date(), + databaseType: DatabaseType.POSTGRESQL, + tables: [ + { + id: '8fvrxtp8fkibvean8y4yrrfot', + name: 'password_resets', + schema: 'public', + x: 500, + y: 500, + fields: [ + { + id: 'qfl022lduv48ud0fwo6r4cq4w', + name: 'email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ik6kosdk4rqdmos2rcixmb9zb', + name: 'token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'uuecnzt95psc38ogftbic40kq', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'mwdx35yl99udnttmwyam1x2dl', + name: 'password_resets_email_index', + unique: false, + fieldIds: ['qfl022lduv48ud0fwo6r4cq4w'], + createdAt: Date.now(), + }, + { + id: 'rhw4qs22pd3xiiyspzfe60nr0', + name: 'password_resets_token_index', + unique: false, + fieldIds: ['ik6kosdk4rqdmos2rcixmb9zb'], + createdAt: Date.now(), + }, + ], + color: '#ff6363', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'b5ry73fbil6z7ijb00kd9a49d', + name: 'api_keys', + schema: 'public', + x: 500, + y: 197.97315993202608, + fields: [ + { + id: '42oq2j16gxgwupuktzgk60bju', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'hp74f9yh75felios6qtwrmand', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '9ek6hdltem6s742jzwy9lhjcw', + name: 'key', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'upy2tuvw9egm4n9jwx4u8vpt4', + name: 'user_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '63fkdp9s6xgen1oer643g1qwq', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'u3rkz6nq9ckxlbxsbizyh5fkh', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'v0ash4efnei4edc1xcllkabf2', + name: 'api_keys_key_unique', + unique: true, + fieldIds: ['9ek6hdltem6s742jzwy9lhjcw'], + createdAt: Date.now(), + }, + { + id: 'cavfokep5f3eb7lpj6408da57', + name: 'api_keys_pkey', + unique: true, + fieldIds: ['42oq2j16gxgwupuktzgk60bju'], + createdAt: Date.now(), + }, + { + id: 'mcjywmwjipakf5zsw2mclqpol', + name: 'api_keys_user_id_index', + unique: false, + fieldIds: ['upy2tuvw9egm4n9jwx4u8vpt4'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'eq3rinbmyqkvn4pp3ai7crdiq', + name: 'users', + schema: 'public', + x: 119.59463198640526, + y: 5.473021582326737, + fields: [ + { + id: 'c9v3h1y3dwkhithk1j0vzr0u6', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'jpawkhjll1flccir6ihv0pm6y', + name: 'email', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ci1ytk3qjdnh590eokr8owlv6', + name: 'token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'iz7bu0ywvw2315vkb4zkxw41v', + name: 'provider', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'a2tw1rk4m5w1lomb0riil560c', + name: 'provider_id', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '88nfh4wbfkpe4nrcumsygpub0', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'k01wh0624jb25z17dcl2q1ejl', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '5g5bkwo0480o9sps9j0l6z2l4', + name: 'name', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'h2b28wbenke9xw4neelrr2ux7', + name: 'password', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '745vls6ns8u1h5vm0a9g0qg4z', + name: 'remember_token', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '5a2nbtxdq5rp8wdwuqrjmqr4d', + name: 'users_pkey', + unique: true, + fieldIds: ['c9v3h1y3dwkhithk1j0vzr0u6'], + createdAt: Date.now(), + }, + { + id: '2h880rrh20ji529gln769go96', + name: 'users_email_unique', + unique: true, + fieldIds: ['jpawkhjll1flccir6ihv0pm6y'], + createdAt: Date.now(), + }, + ], + color: '#c05dcf', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'kvrc9elo1eruj57f8wbx4f2bu', + name: 'api_log', + schema: 'public', + x: -228.58121195241824, + y: 217.63516878776466, + fields: [ + { + id: 'hkznvnetpfhfk4x6wvvscj451', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'gy3tdo2xnei2glvf684uvpx95', + name: 'user_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'gvl7q0o671v4inhnotbbwdsn1', + name: 'api_key_id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '9504kb5mta5gdvneyvbyb2f86', + name: 'images', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '80y0556noakmgidg3c1m0ly3h', + name: 'created_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '7q7s2ni6wvgci5v6e2krbvynv', + name: 'updated_at', + type: { + id: 'timestamp_without_time_zone', + name: 'timestamp without time zone', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '28m6v8j3gxiwglm7hvn175h8a', + name: 'api_log_user_id_index', + unique: false, + fieldIds: ['gy3tdo2xnei2glvf684uvpx95'], + createdAt: Date.now(), + }, + { + id: '7a9amdkmreqnw06iytcahi85o', + name: 'api_log_pkey', + unique: true, + fieldIds: ['hkznvnetpfhfk4x6wvvscj451'], + createdAt: Date.now(), + }, + ], + color: '#ffe374', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'lj0wibk34sqr1zz9e0kuuvqji', + name: 'migrations', + schema: 'public', + x: 216.48644161631364, + y: 505.8783895959216, + fields: [ + { + id: 'ynxooqs5lm3oonb59stpgrzlj', + name: 'id', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'lesnsizfcigcf2l73ksg93v0s', + name: 'migration', + type: { + id: 'character_varying', + name: 'character varying', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'rq31fdh4r9c0ko0e35f2b261u', + name: 'batch', + type: { + id: 'integer', + name: 'integer', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '0hjk4ujpmk2fnuz570duu8pay', + name: 'migrations_pkey', + unique: true, + fieldIds: ['ynxooqs5lm3oonb59stpgrzlj'], + createdAt: Date.now(), + }, + ], + color: '#7175fa', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + ], + relationships: [ + { + id: '2hd93u6rohoxdbc9lwdibp104', + name: 'api_keys_user_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'b5ry73fbil6z7ijb00kd9a49d', + targetTableId: 'eq3rinbmyqkvn4pp3ai7crdiq', + sourceFieldId: 'upy2tuvw9egm4n9jwx4u8vpt4', + targetFieldId: 'c9v3h1y3dwkhithk1j0vzr0u6', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'nqopnr1bc8dlavpfr735mzjsr', + name: 'api_log_user_id_foreign', + sourceSchema: 'public', + targetSchema: 'public', + sourceTableId: 'kvrc9elo1eruj57f8wbx4f2bu', + targetTableId: 'eq3rinbmyqkvn4pp3ai7crdiq', + sourceFieldId: 'gy3tdo2xnei2glvf684uvpx95', + targetFieldId: 'c9v3h1y3dwkhithk1j0vzr0u6', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + ], + dependencies: [], + }, +}; diff --git a/src/templates-data/templates/staytus-db.ts b/src/templates-data/templates/staytus-db.ts new file mode 100644 index 00000000..5d7d9db6 --- /dev/null +++ b/src/templates-data/templates/staytus-db.ts @@ -0,0 +1,2354 @@ +import { DatabaseType } from '@/lib/domain/database-type'; +import type { Template } from '../templates-data'; +import image from '@/assets/templates/staytus-db.png'; +import imageDark from '@/assets/templates/staytus-db-dark.png'; + +export const staytusDb: Template = { + slug: 'staytus-database', + name: 'Staytus', + shortDescription: 'Service status publishing solution', + description: + 'An open-source platform for publishing the status of your services, providing beautiful public and admin interfaces.', + image, + imageDark, + tags: ['MySQL', 'Open Source', 'Rails'], + featured: true, + url: 'https://github.com/adamcooke/staytus', + diagram: { + id: 'staytus_db', + name: 'staytus-database', + createdAt: new Date(), + updatedAt: new Date(), + databaseType: DatabaseType.MYSQL, + tables: [ + { + id: '0g6y4lqz8r2s0f1frzdsklep3', + name: 'maintenances', + schema: 't_staytus_db', + x: 2260, + y: 100, + fields: [ + { + id: 'uec8qvmjsjyc3eyt0ob6g1lo4', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'llujh8t25ff7c1is70ep8u5do', + name: 'title', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'h9pse4cqmchzi3w685ssfde7o', + name: 'description', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '6ol1oh7n9wywvl4vrqqzqw4tq', + name: 'start_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'qvr5uie0jlzroqbh44589f7v1', + name: 'finish_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'dqxyfu4ewhb0fuxrg7slrnel0', + name: 'length_in_minutes', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'i07uatas3r3nsj3x277nfgtgq', + name: 'user_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'win0hcvv3oxsw4vk7evvddao2', + name: 'service_status_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '7ryh3dr8o3gbheab4hindw7gn', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ra2evksjk2rbku64d3gsuctgd', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'vdv729crfxnldatfgknxox31s', + name: 'closed_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'exbmkiz87wse3sqhsx2eyjyv3', + name: 'identifier', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'lfp5r2qtfjpm349x0gdh34uvr', + name: 'notify', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '0ewkap9s608o3lxqxytbjev38', + name: 'PRIMARY', + unique: true, + fieldIds: ['uec8qvmjsjyc3eyt0ob6g1lo4'], + createdAt: Date.now(), + }, + { + id: 'cid1j08voe69kpw75d6ry873k', + name: 'maintenances_service_status_id_foreign', + unique: false, + fieldIds: ['win0hcvv3oxsw4vk7evvddao2'], + createdAt: Date.now(), + }, + { + id: 'm8z30ytau823v5xslhj1t3794', + name: 'maintenances_user_id_foreign', + unique: false, + fieldIds: ['i07uatas3r3nsj3x277nfgtgq'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '2dfe92ureapqe4n4hxv54bw5x', + name: 'issue_updates', + schema: 't_staytus_db', + x: 1420, + y: 400, + fields: [ + { + id: 'q23xz0e62etyc5rxl5fk1vb0z', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '3huo3ep5ftlwm0phkn8d6urbq', + name: 'issue_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'f5149o44pkz5sn61i4m4itn6q', + name: 'user_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'ftvkprxy3bw4lvx94j3wjyc0p', + name: 'service_status_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'hle17dqp0sjv6xuhdva0vsugt', + name: 'state', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '57jh963nk2duy6rcuzpqxiwd7', + name: 'text', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'cehjbntug4uy919jcdt3joovi', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'zx8t6rkegqw433yckdhy6karg', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'i8bb5x9qsbs1d933y2jxndig9', + name: 'identifier', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '9o218g5m4bs1vwlediqjd9h7b', + name: 'notify', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'vzt1xy8ozwy52fugtia7yiukc', + name: 'PRIMARY', + unique: true, + fieldIds: ['q23xz0e62etyc5rxl5fk1vb0z'], + createdAt: Date.now(), + }, + { + id: 'xaqtf6bks9ym18b9nf62aqx1y', + name: 'issue_updates_issue_id_foreign', + unique: false, + fieldIds: ['3huo3ep5ftlwm0phkn8d6urbq'], + createdAt: Date.now(), + }, + { + id: '9jq5xtabi67a8j1modrsi77ae', + name: 'issue_updates_service_status_id_foreign', + unique: false, + fieldIds: ['ftvkprxy3bw4lvx94j3wjyc0p'], + createdAt: Date.now(), + }, + { + id: '812qcj18okqh5di677sxsivs1', + name: 'issue_updates_user_id_foreign', + unique: false, + fieldIds: ['f5149o44pkz5sn61i4m4itn6q'], + createdAt: Date.now(), + }, + ], + color: '#8a61f5', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: '4k36q8p2lmugq9ophivx8893g', + name: 'email_templates', + schema: 't_staytus_db', + x: 980, + y: 300, + fields: [ + { + id: '5lpim898x5ttzvxpoi41zf6rj', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '4kieqa4ce7xgqpgxf4v8qw5e9', + name: 'name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'f2e98lk5z0cjp3ey5qbl99n97', + name: 'subject', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'u3f8tmxzgw0cuncvljoenrdh4', + name: 'content', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '03vz3at5tyf4g1h4567u9qc6z', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'arseju0svgq3zea5w4nqg2s8v', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '99n24ubcx17jr0ioq1be33a06', + name: 'PRIMARY', + unique: true, + fieldIds: ['5lpim898x5ttzvxpoi41zf6rj'], + createdAt: Date.now(), + }, + ], + color: '#9ef07a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'a37clougxq0ts3bxx4xagcdkk', + name: 'issue_service_joins', + schema: 't_staytus_db', + x: 1340, + y: 1060, + fields: [ + { + id: 'wdr6j56qa1uc99shh4a0nfyhj', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'emb6xna8sr3wd29oovid4b2nb', + name: 'issue_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '58bvgcijjsdxzgw6ukill1zo2', + name: 'service_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'f06g60jgg10ufj9ts3w10vvwm', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'evnmfzv5i6luss8f662b00s39', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'd99aa4uks0iq3vlsduwhlvsaw', + name: 'PRIMARY', + unique: true, + fieldIds: ['wdr6j56qa1uc99shh4a0nfyhj'], + createdAt: Date.now(), + }, + { + id: 'gcrmlf0n2jc1ugos85vm7qqja', + name: 'issue_service_joins_service_id_foreign', + unique: false, + fieldIds: ['58bvgcijjsdxzgw6ukill1zo2'], + createdAt: Date.now(), + }, + { + id: 'wgytkayv2l5zur5o3em23rygq', + name: 'issue_service_joins_issue_id_foreign', + unique: false, + fieldIds: ['emb6xna8sr3wd29oovid4b2nb'], + createdAt: Date.now(), + }, + ], + color: '#8a61f5', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'b2gxamp2gt9j785k5abstt1if', + name: 'history_items', + schema: 't_staytus_db', + x: 720, + y: 540, + fields: [ + { + id: 'p61xa77uo395h1mu2eu2qj4yb', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '98vm8oinmunmbv6o64d45pobe', + name: 'item_type', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'kmlzuzbbf07ho6tcbi03kuvy0', + name: 'item_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '8swrvw0jr27gyyv3kidf80a60', + name: 'date', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'eu6t0inzhw7wmkro7kewn1kfw', + name: 'PRIMARY', + unique: true, + fieldIds: ['p61xa77uo395h1mu2eu2qj4yb'], + createdAt: Date.now(), + }, + ], + color: '#c05dcf', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'c0nf3rv6aurgeu4v4sb80alfa', + name: 'users', + schema: 't_staytus_db', + x: 2160, + y: 760, + fields: [ + { + id: 'vrzwr7lu2hpqdqpz4hl8ufyex', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '8rgf912c5nf9g373gpr70h03x', + name: 'email_address', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '94neqxt1fj40bxaay8mc11wdy', + name: 'name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'qcekauvexznfcyasektcvkba9', + name: 'password_digest', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'y58p386j1hcs07v6kkc37ym6w', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'pyiw4cyyhm4sr6e649f1i460s', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '17iesz4tkufa0x0nx6hv3tvf4', + name: 'PRIMARY', + unique: true, + fieldIds: ['vrzwr7lu2hpqdqpz4hl8ufyex'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'czbdab8cspeejqxrkiiuo7qye', + name: 'issues', + schema: 't_staytus_db', + x: 1800, + y: 920, + fields: [ + { + id: 'rl329e4vykjc5xv45hmcdvs7x', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '8lybdggqtfhsa9us0roz9d4em', + name: 'title', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '6s4ekwra17z058qjfydr8j6rv', + name: 'state', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'e1r31s3espm10lquo1wu8puwm', + name: 'service_status_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '2ydcn1fxx4tfy8syts46yb1zh', + name: 'all_services', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '6exnpipgvs345fzwje5vivogr', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'q0psxlmj7dul4uki56zu8p1zf', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ypy405vin8689dk90t5e8awwc', + name: 'user_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '154gt2jpjtzgder8zac9wh5k8', + name: 'identifier', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'ecmuzclgzy092amsgzn7qjsbj', + name: 'notify', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '203w08u24843g41cy9l8cssdz', + name: 'PRIMARY', + unique: true, + fieldIds: ['rl329e4vykjc5xv45hmcdvs7x'], + createdAt: Date.now(), + }, + { + id: 'qni9eoeg9rew6m7yga0t1mdsh', + name: 'issues_user_id_foreign', + unique: false, + fieldIds: ['ypy405vin8689dk90t5e8awwc'], + createdAt: Date.now(), + }, + { + id: 'b208tntnuc3ebt2vmoaxtvafr', + name: 'issues_service_status_id_foreign', + unique: false, + fieldIds: ['e1r31s3espm10lquo1wu8puwm'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'd5js6gwtocry906qkehcusydy', + name: 'service_statuses', + schema: 't_staytus_db', + x: 1820, + y: 180, + fields: [ + { + id: '4ylkkblyu3f3h57rhuslcsf9u', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '6z05h0143apzo8poc8csqpy6j', + name: 'name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'hg59mk2peb3sctx4igeledvmv', + name: 'permalink', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '89oij5cx7wksixy0u66ar0x0u', + name: 'color', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'hqayf9ybw39zpybkectxnlkva', + name: 'status_type', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'xzh3iuwxjhfv1qbk7bn5jb61o', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'rc99cbr4kdem191sk47e1dygo', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '6oa5ktaeswz1s8wj7jj4z3uh1', + name: 'PRIMARY', + unique: true, + fieldIds: ['4ylkkblyu3f3h57rhuslcsf9u'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'dau33uzp82nosjepxy2in8nqi', + name: 'subscribers', + schema: 't_staytus_db', + x: 980, + y: 20, + fields: [ + { + id: 'acq9ot8s555ffu2sk13ey5emo', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'uc6oz8qpi7lq8q84517zp6ze1', + name: 'email_address', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'agp2h28omgrerfr36fyytfet4', + name: 'verification_token', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'l3naxsa2r5wkd4dwc4ntchpzh', + name: 'verified_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'lb76qv6tr5tvqv73z6hkz6owv', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'xkioyacaw3obogeqedzqjkb2l', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'bnya1j4dv5s55fpc7r1d78d3y', + name: 'PRIMARY', + unique: true, + fieldIds: ['acq9ot8s555ffu2sk13ey5emo'], + createdAt: Date.now(), + }, + ], + color: '#ff6363', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'grpts66abujxx6gpro0hiqt1o', + name: 'services', + schema: 't_staytus_db', + x: 1440, + y: -160, + fields: [ + { + id: 'n8efkgaj2ik4zbjf8842sun97', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'rf3otnxb3b9v8yriyxg6idyj1', + name: 'name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'raqmgxhp0qs08xez87c1couxc', + name: 'permalink', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'b3gnntsvvfo8npbnzb412fqg6', + name: 'position', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'm0pzlbjrcwv77ny5t8b3vwrh2', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'xhzkwd9ze1wzcyhebqmxv98xk', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'h01qaw51hp219ix6sfiw5eyw8', + name: 'status_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'nn8menylb0k5438v18ebjeauk', + name: 'description', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'nvmn090gv9ua3silqubvqdcal', + name: 'group_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '115dhang67y0im2p3gzawjauy', + name: 'PRIMARY', + unique: true, + fieldIds: ['n8efkgaj2ik4zbjf8842sun97'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'j4hgct19im0ei9rcojyvtth37', + name: 'maintenance_service_joins', + schema: 't_staytus_db', + x: 1840, + y: -260, + fields: [ + { + id: 'js12beggk6epunil5q25q03w3', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'm88n5l0ihz96g8g5gccxcrfnd', + name: 'maintenance_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'i46cg5rpmtxwxt26qy2kmmooz', + name: 'service_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '4luugl08vxs6jm1tb2nvj4yez', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ofiz3xfa8o2ywe0gxl9znjnvu', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: '88zqwpt86x5p3a75r777wjxcy', + name: 'PRIMARY', + unique: true, + fieldIds: ['js12beggk6epunil5q25q03w3'], + createdAt: Date.now(), + }, + { + id: 'yvuk1o2tgxcxbm46l62j5gali', + name: 'maintenance_service_joins_service_id_foreign', + unique: false, + fieldIds: ['i46cg5rpmtxwxt26qy2kmmooz'], + createdAt: Date.now(), + }, + { + id: '1ffizfe7z67al3pwlpboh51ct', + name: 'maintenance_service_joins_maintenance_id_foreign', + unique: false, + fieldIds: ['m88n5l0ihz96g8g5gccxcrfnd'], + createdAt: Date.now(), + }, + ], + color: '#9ef07a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'js833ozrqu0ahqlvdtvub5e1w', + name: 'nifty_attachments', + schema: 't_staytus_db', + x: 980, + y: 800, + fields: [ + { + id: '2cpwgtfacjocpwapm3u7lzis5', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'wmkvsq6cg807v9hmczpnojx2x', + name: 'parent_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'lbus7jul4rh5st35kg4simts7', + name: 'parent_type', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '4f9542vo3g1pxtaavbchyhl4i', + name: 'token', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '3baa3eustwoepsyncrrders8h', + name: 'digest', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '79x2a7n33wucok5z31pbym4jh', + name: 'role', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'fxe9k4z6h5zzscvyyy70dijjq', + name: 'file_name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'rpica94cidday7eyn3cgsxgcr', + name: 'file_type', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'xr88q5g1oboflm3h2tkz4vq2p', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'g74osj819y5rd0mhk9zgn8qjm', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'fdnk345oot3i10agtrzystyn6', + name: 'PRIMARY', + unique: true, + fieldIds: ['2cpwgtfacjocpwapm3u7lzis5'], + createdAt: Date.now(), + }, + ], + color: '#ffe374', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'll9l5paivbwcyghae9fmz6rla', + name: 'maintenance_updates', + schema: 't_staytus_db', + x: 2640, + y: 700, + fields: [ + { + id: 'z2hrcqiud7svg6nkwek0o4k4e', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'sfqgoj2rpzfqg9gx4d4jjwil8', + name: 'maintenance_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '9d5e1037vumn767pm68cvw8ko', + name: 'user_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '2j8igatoudxooz9tpqouw49wk', + name: 'text', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'bfaokb7m2um4wxzztlxftgkr7', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'c827zalc08gc3kytkb9x3q5pi', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'jwjyb21fxlfyb64g9x2tuyj4c', + name: 'identifier', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'cxjn2vieevo50x9zu9mzle4p3', + name: 'notify', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'pc5t200dh6kfq6xq3pun5swqc', + name: 'PRIMARY', + unique: true, + fieldIds: ['z2hrcqiud7svg6nkwek0o4k4e'], + createdAt: Date.now(), + }, + { + id: '0rw5b6txruvh04sfncxyksoc5', + name: 'maintenance_updates_user_id_foreign', + unique: false, + fieldIds: ['9d5e1037vumn767pm68cvw8ko'], + createdAt: Date.now(), + }, + { + id: 'tbolhha9a7v8tlumk4ayqcrz2', + name: 'maintenance_updates_maintenance_id_foreign', + unique: false, + fieldIds: ['sfqgoj2rpzfqg9gx4d4jjwil8'], + createdAt: Date.now(), + }, + ], + color: '#9ef07a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'oetpge5zxdnpwukcfvtq557rq', + name: 'delayed_jobs', + schema: 't_staytus_db', + x: 720, + y: -200, + fields: [ + { + id: 'tdmbg0fhg8e738oemx9vk4h2a', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '1sky9o7smcqijj93alxz0fhk0', + name: 'priority', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'd1a07yqmilzaqgsk2342ene57', + name: 'attempts', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '2ahemgkz8irydabhuinz7cc0o', + name: 'handler', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '6ml6qugkiqunc04ye1x1yjss2', + name: 'last_error', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'gtfnvpxjg9uf04gtfst9buk12', + name: 'run_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'nt6znxx9f9e412bk0cmxhtm1m', + name: 'locked_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'xcewih8h0euvuzee4ookmwv8x', + name: 'failed_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: '0nj1jvwnaa1od4vda38dx9qgy', + name: 'locked_by', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'ksuux2ns62lt2w9suv0eaigo3', + name: 'queue', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '0kn0m44a6d6orfh7b18qam2a9', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'xlscf5cl4rvytac2byh8f30is', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'qo5f0mkh1whmflnvqfiluhwpe', + name: 'PRIMARY', + unique: true, + fieldIds: ['tdmbg0fhg8e738oemx9vk4h2a'], + createdAt: Date.now(), + }, + { + id: 'arx8egq3hiejrqpa1cc2qg094', + name: 'delayed_jobs_priority_run_at_index', + unique: false, + fieldIds: [ + '1sky9o7smcqijj93alxz0fhk0', + 'gtfnvpxjg9uf04gtfst9buk12', + ], + createdAt: Date.now(), + }, + ], + color: '#8eb7ff', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'qj3k989r08fiytsb69actqlve', + name: 'sites', + schema: 't_staytus_db', + x: 720, + y: 780, + fields: [ + { + id: '5qmffm48z3ytoys9ryy7rtr5b', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'xz1m9h2q9lbbjbdxuoxc8xp89', + name: 'title', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'f067ttfu6i7yeui1t8igpfqhq', + name: 'description', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'hktz9r8kquur7ooa844s8ywwm', + name: 'domain', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '2c2ugfbe9jxv6lmzodqs1m9f2', + name: 'support_email', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'hu0plfefx7rb91dczem468l7t', + name: 'website_url', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'qlh82vqij4qrbo85w3rgsw57c', + name: 'time_zone', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'dvn2as5apajy0lwhcl8ulq7fk', + name: 'crawling_permitted', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'wnqqnnox26c0iyt8f13axi41c', + name: 'email_from_name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'g2in3lqgztjueajby9ceozc97', + name: 'email_from_address', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'ohs3a489y0qtr5wktct90jjz9', + name: 'allow_subscriptions', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: true, + createdAt: Date.now(), + }, + { + id: 'mj7023r7agkv8bplkqyynl73c', + name: 'http_protocol', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'w859tkugs5zm21jzob0ns8ixa', + name: 'PRIMARY', + unique: true, + fieldIds: ['5qmffm48z3ytoys9ryy7rtr5b'], + createdAt: Date.now(), + }, + ], + color: '#7175fa', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'qwvef3qmweu7f30uy1zn3pma9', + name: 'service_groups', + schema: 't_staytus_db', + x: 980, + y: 580, + fields: [ + { + id: '5n0rej8wov1cuiu4rojhphjhq', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'bs14e7bajtrrol12q0yltxj50', + name: 'name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'qv83ohlaw18czz4gqr6jolifv', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'dzr8cp4r5heo8a1hr9c5627ry', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'v4lh3jo0fbqroupfxccndpm2y', + name: 'PRIMARY', + unique: true, + fieldIds: ['5n0rej8wov1cuiu4rojhphjhq'], + createdAt: Date.now(), + }, + ], + color: '#8eb7ff', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'u33vrcdis4tbjx8ecru7pc4e1', + name: 'api_tokens', + schema: 't_staytus_db', + x: 720, + y: 260, + fields: [ + { + id: '2t3nmlmh26z2t6beufqnt32u0', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: '20vip2n3ox713p1fxxtqounhw', + name: 'name', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'le54gonncqvb4cl58xxs65id5', + name: 'token', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'h3bnty6pgyxctl9nrvstk2tj4', + name: 'secret', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: false, + unique: false, + nullable: true, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: '9jijcg1vvvye7loyffhezdbuv', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '3fx6m813n5u934ls4d62lw2ai', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'dqd7pvopeapi7prarsly1mfw8', + name: 'PRIMARY', + unique: true, + fieldIds: ['2t3nmlmh26z2t6beufqnt32u0'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'vhzp9fmqtb634958p9oiu954t', + name: 'schema_migrations', + schema: 't_staytus_db', + x: 980, + y: -100, + fields: [ + { + id: '8tskgia6di4cdzmay2ybj3utz', + name: 'version', + type: { + id: 'varchar', + name: 'varchar', + }, + primaryKey: true, + unique: true, + nullable: false, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'zqjuulo8bqegav463p0h8gxs8', + name: 'PRIMARY', + unique: true, + fieldIds: ['8tskgia6di4cdzmay2ybj3utz'], + createdAt: Date.now(), + }, + ], + color: '#b067e9', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + ], + relationships: [ + { + id: '1ftjqep1uoc19jui5c7bjfi6a', + name: 'issue_updates_service_status_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: '2dfe92ureapqe4n4hxv54bw5x', + targetTableId: 'd5js6gwtocry906qkehcusydy', + sourceFieldId: 'ftvkprxy3bw4lvx94j3wjyc0p', + targetFieldId: '4ylkkblyu3f3h57rhuslcsf9u', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: '6uo6fpzcy8l6t2fczkdbzs1t3', + name: 'maintenance_updates_user_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'll9l5paivbwcyghae9fmz6rla', + targetTableId: 'c0nf3rv6aurgeu4v4sb80alfa', + sourceFieldId: '9d5e1037vumn767pm68cvw8ko', + targetFieldId: 'vrzwr7lu2hpqdqpz4hl8ufyex', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: '9ez6y26qsei1922e981dnth1l', + name: 'issues_service_status_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'czbdab8cspeejqxrkiiuo7qye', + targetTableId: 'd5js6gwtocry906qkehcusydy', + sourceFieldId: 'e1r31s3espm10lquo1wu8puwm', + targetFieldId: '4ylkkblyu3f3h57rhuslcsf9u', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'a4cjgzag00tz49lov7hin20n2', + name: 'issue_service_joins_issue_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'a37clougxq0ts3bxx4xagcdkk', + targetTableId: 'czbdab8cspeejqxrkiiuo7qye', + sourceFieldId: 'emb6xna8sr3wd29oovid4b2nb', + targetFieldId: 'rl329e4vykjc5xv45hmcdvs7x', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'agylss1pgizqt7i15ilqw6m67', + name: 'maintenances_user_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: '0g6y4lqz8r2s0f1frzdsklep3', + targetTableId: 'c0nf3rv6aurgeu4v4sb80alfa', + sourceFieldId: 'i07uatas3r3nsj3x277nfgtgq', + targetFieldId: 'vrzwr7lu2hpqdqpz4hl8ufyex', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'doygqq2xx7vh5hsha6768s3qw', + name: 'maintenances_service_status_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: '0g6y4lqz8r2s0f1frzdsklep3', + targetTableId: 'd5js6gwtocry906qkehcusydy', + sourceFieldId: 'win0hcvv3oxsw4vk7evvddao2', + targetFieldId: '4ylkkblyu3f3h57rhuslcsf9u', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'f4wq0g29fsadu7bji6kf2iwiw', + name: 'issue_service_joins_service_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'a37clougxq0ts3bxx4xagcdkk', + targetTableId: 'grpts66abujxx6gpro0hiqt1o', + sourceFieldId: '58bvgcijjsdxzgw6ukill1zo2', + targetFieldId: 'n8efkgaj2ik4zbjf8842sun97', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'fg6cxcjo5n75x0mnn9vsrpz6g', + name: 'issue_updates_issue_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: '2dfe92ureapqe4n4hxv54bw5x', + targetTableId: 'czbdab8cspeejqxrkiiuo7qye', + sourceFieldId: '3huo3ep5ftlwm0phkn8d6urbq', + targetFieldId: 'rl329e4vykjc5xv45hmcdvs7x', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'ht2gy8v0pjbl05felmu9ofvvk', + name: 'maintenance_service_joins_service_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'j4hgct19im0ei9rcojyvtth37', + targetTableId: 'grpts66abujxx6gpro0hiqt1o', + sourceFieldId: 'i46cg5rpmtxwxt26qy2kmmooz', + targetFieldId: 'n8efkgaj2ik4zbjf8842sun97', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'i8r5ezusju31bix7vf5stziqw', + name: 'maintenance_service_joins_maintenance_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'j4hgct19im0ei9rcojyvtth37', + targetTableId: '0g6y4lqz8r2s0f1frzdsklep3', + sourceFieldId: 'm88n5l0ihz96g8g5gccxcrfnd', + targetFieldId: 'uec8qvmjsjyc3eyt0ob6g1lo4', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'ujfj4hph8fxuwb86hik7pytxg', + name: 'issue_updates_user_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: '2dfe92ureapqe4n4hxv54bw5x', + targetTableId: 'c0nf3rv6aurgeu4v4sb80alfa', + sourceFieldId: 'f5149o44pkz5sn61i4m4itn6q', + targetFieldId: 'vrzwr7lu2hpqdqpz4hl8ufyex', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'wqhuhzlk270w95qob8rkx5p58', + name: 'maintenance_updates_maintenance_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'll9l5paivbwcyghae9fmz6rla', + targetTableId: '0g6y4lqz8r2s0f1frzdsklep3', + sourceFieldId: 'sfqgoj2rpzfqg9gx4d4jjwil8', + targetFieldId: 'uec8qvmjsjyc3eyt0ob6g1lo4', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'yw48nli4sicx73rpprsmlfvnp', + name: 'issues_user_id_foreign', + sourceSchema: 't_staytus_db', + targetSchema: 't_staytus_db', + sourceTableId: 'czbdab8cspeejqxrkiiuo7qye', + targetTableId: 'c0nf3rv6aurgeu4v4sb80alfa', + sourceFieldId: 'ypy405vin8689dk90t5e8awwc', + targetFieldId: 'vrzwr7lu2hpqdqpz4hl8ufyex', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + ], + dependencies: [], + }, +}; diff --git a/src/templates-data/templates/talk-db.ts b/src/templates-data/templates/talk-db.ts new file mode 100644 index 00000000..6bcb1372 --- /dev/null +++ b/src/templates-data/templates/talk-db.ts @@ -0,0 +1,368 @@ +import { DatabaseType } from '@/lib/domain/database-type'; +import type { Template } from '../templates-data'; +import image from '@/assets/templates/talk-db.png'; +import imageDark from '@/assets/templates/talk-db-dark.png'; + +export const talkDb: Template = { + slug: 'talk-database', + name: 'Talk', + shortDescription: 'Real-time messaging system for Laravel apps', + description: + 'Real-time user messaging and chatting, enabling easy integration of a complete messaging system into Laravel', + image, + imageDark, + tags: ['MySQL', 'Open Source', 'Laravel', 'PHP'], + featured: false, + url: 'https://github.com/nahid/talk', + diagram: { + id: 'talk_db', + name: 'talk-database', + createdAt: new Date(), + updatedAt: new Date(), + databaseType: DatabaseType.MYSQL, + tables: [ + { + id: 'c7vc8hqi3g685begamoeynk8d', + name: 'conversations', + schema: 't_talk_db', + x: 100, + y: 100, + fields: [ + { + id: 'gjppm3s63owtj652n7pg98ge1', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 's7i8ns3s2s90qnwq0f5bhh3os', + name: 'user_one', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'ksw3hnnqf8qcbydiyj8mzr62m', + name: 'user_two', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'zlv1x0tkmteanxzkr3257c7wc', + name: 'status', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'nbdsdsizrfnwonyfxitlv9h6a', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'f154qz15wvtnf5be9y5di0gt5', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'zbze18d7ee2fw29v7ehtcpt2h', + name: 'PRIMARY', + unique: true, + fieldIds: ['gjppm3s63owtj652n7pg98ge1'], + createdAt: Date.now(), + }, + { + id: '3ki3fnfhjcacver3wxpk82wyo', + name: 'conversations_user_one_foreign', + unique: false, + fieldIds: ['s7i8ns3s2s90qnwq0f5bhh3os'], + createdAt: Date.now(), + }, + { + id: '24bjsc5mnqcqx01vidy1hvl3o', + name: 'conversations_user_two_foreign', + unique: false, + fieldIds: ['ksw3hnnqf8qcbydiyj8mzr62m'], + createdAt: Date.now(), + }, + ], + color: '#ffe374', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'hhzhqg75ww5z6hpcclgt744gp', + name: 'users', + schema: 't_talk_db', + x: 452.2341222932548, + y: 429.1972652762166, + fields: [ + { + id: '4zee1a93txjpymyykzffgn0yv', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'x5bfcqhwf7z54s3vn13hw3m8u', + name: 'PRIMARY', + unique: true, + fieldIds: ['4zee1a93txjpymyykzffgn0yv'], + createdAt: Date.now(), + }, + ], + color: '#ff6b8a', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + { + id: 'p93y0ksa4riotg9brtg3us955', + name: 'messages', + schema: 't_talk_db', + x: 634.0602484435269, + y: 7.05018392200941, + fields: [ + { + id: 'ettweqmom2n5fo0uutyffgnq0', + name: 'id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: true, + unique: true, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'nm5w9qy0mhqnei6yc1025hwgl', + name: 'message', + type: { + id: 'text', + name: 'text', + }, + primaryKey: false, + unique: false, + nullable: false, + collation: 'utf8mb4_0900_ai_ci', + createdAt: Date.now(), + }, + { + id: 'lu21oxdkkmgmhcfmitar7t3cn', + name: 'is_seen', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'y2jmvh0bst26ambmvbs8g3jbt', + name: 'deleted_from_sender', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'e85i74sgx3shtvtew2eavotpa', + name: 'deleted_from_receiver', + type: { + id: 'tinyint', + name: 'tinyint', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: '1xga79r962mnpd944tugdl4op', + name: 'user_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'chqdcj89fyutwbd3e3t2hsnvf', + name: 'conversation_id', + type: { + id: 'int', + name: 'int', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'tk1zdv6msjpuxdo5is0yp66l1', + name: 'created_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + { + id: 'qhto8ms1z0lz4o9hztfe1v548', + name: 'updated_at', + type: { + id: 'datetime', + name: 'datetime', + }, + primaryKey: false, + unique: false, + nullable: false, + createdAt: Date.now(), + }, + ], + indexes: [ + { + id: 'zsc4o8e1ipuat9gtvnf763937', + name: 'PRIMARY', + unique: true, + fieldIds: ['ettweqmom2n5fo0uutyffgnq0'], + createdAt: Date.now(), + }, + { + id: '0m73imn1n3n3xcnu8qsm8ibdg', + name: 'messages_user_id_foreign', + unique: false, + fieldIds: ['1xga79r962mnpd944tugdl4op'], + createdAt: Date.now(), + }, + { + id: 'l1rt2wppy72ihb694ogwz01ep', + name: 'messages_conversation_id_foreign', + unique: false, + fieldIds: ['chqdcj89fyutwbd3e3t2hsnvf'], + createdAt: Date.now(), + }, + ], + color: '#8eb7ff', + isView: false, + isMaterializedView: false, + createdAt: Date.now(), + }, + ], + relationships: [ + { + id: '4qbxn9c9guxu4s12o2fut1k2b', + name: 'conversations_user_two_foreign', + sourceSchema: 't_talk_db', + targetSchema: 't_talk_db', + sourceTableId: 'c7vc8hqi3g685begamoeynk8d', + targetTableId: 'hhzhqg75ww5z6hpcclgt744gp', + sourceFieldId: 'ksw3hnnqf8qcbydiyj8mzr62m', + targetFieldId: '4zee1a93txjpymyykzffgn0yv', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: '4uof65m5ev39c3dy016tyhguu', + name: 'messages_conversation_id_foreign', + sourceSchema: 't_talk_db', + targetSchema: 't_talk_db', + sourceTableId: 'p93y0ksa4riotg9brtg3us955', + targetTableId: 'c7vc8hqi3g685begamoeynk8d', + sourceFieldId: 'chqdcj89fyutwbd3e3t2hsnvf', + targetFieldId: 'gjppm3s63owtj652n7pg98ge1', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'de4p0tsu4gs07m76534tomu9k', + name: 'messages_user_id_foreign', + sourceSchema: 't_talk_db', + targetSchema: 't_talk_db', + sourceTableId: 'p93y0ksa4riotg9brtg3us955', + targetTableId: 'hhzhqg75ww5z6hpcclgt744gp', + sourceFieldId: '1xga79r962mnpd944tugdl4op', + targetFieldId: '4zee1a93txjpymyykzffgn0yv', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + { + id: 'ro7uwskdw8b1mj833n9m82yn9', + name: 'conversations_user_one_foreign', + sourceSchema: 't_talk_db', + targetSchema: 't_talk_db', + sourceTableId: 'c7vc8hqi3g685begamoeynk8d', + targetTableId: 'hhzhqg75ww5z6hpcclgt744gp', + sourceFieldId: 's7i8ns3s2s90qnwq0f5bhh3os', + targetFieldId: '4zee1a93txjpymyykzffgn0yv', + sourceCardinality: 'many', + targetCardinality: 'one', + createdAt: Date.now(), + }, + ], + dependencies: [], + }, +};