Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
import { DatabaseType } from '@/lib/domain/database-type';
import type { Template } from '../templates-data';
import image from '@/assets/templates/buddypress.png';
import imageDark from '@/assets/templates/buddypress-dark.png';
const now = Date.now();
export const buddypressDb: Template = {
slug: 'buddypress-database',
name: 'BuddyPress',
shortDescription: 'Social networking plugin for WordPress',
description:
'Transform your WordPress site into a social network with profiles, groups, messaging, and more by Automattic',
image,
imageDark,
tags: ['Postgres', 'Open Source', 'WordPress'],
featured: false,
url: 'https://buddypress.org',
diagram: {
id: 'buddypress_db',
name: 'buddypress-database',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.MYSQL,
tables: [
{
id: '059yiztfxc81c40ou8axzp6ed',
name: 'bp_messages_notices',
schema: 't_buddypress',
x: 900,
y: 1100,
fields: [
{
id: '4tk0dxzvxghbx6h4kvbebwyix',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '6ag9nykju26g65rq867kmpq0h',
name: 'subject',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '6u25set1yxj58pjyjf89uquu0',
name: 'message',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'gradl2h15nzpns2sowt6rn668',
name: 'date_sent',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'uyda0a049bt6hat5cgxnl17uk',
name: 'is_active',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'exztwt2i37m0bowspzpzq3fna',
name: 'PRIMARY',
unique: true,
fieldIds: ['4tk0dxzvxghbx6h4kvbebwyix'],
createdAt: now,
},
{
id: 'twg1wflzaxqb3qv1ihr1ldgbh',
name: 'bp_messages_notices_pkey',
unique: true,
fieldIds: ['4tk0dxzvxghbx6h4kvbebwyix'],
createdAt: now,
},
],
color: '#4dee8a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '0ucnx1brbrk8xl5nlofp9uae1',
name: 'bp_xprofile_fields',
schema: 't_buddypress',
x: 623.6067977499788,
y: -825.5282581475768,
fields: [
{
id: '7vtf8adnbdwii7ja42i7h0l4h',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 't0zyx4xgmoenrhuy7qkegfh46',
name: 'group_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'xrfucst4r34fceup45a5kp7e0',
name: 'parent_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '6u2sq00zwzts8cn35v4iztcst',
name: 'type',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'l8uei7qggsojvpsb78bmlx6q0',
name: 'name',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '49w3kyy1mypk1p8nqxwin2vvl',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'inauc48d1t818n3sj370ufbd0',
name: 'is_required',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'gkm6f2i4xwwjy45p9dl5oh1zn',
name: 'is_default_option',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '983gewks8fpk7p6fxgleimm20',
name: 'field_order',
type: {
id: 'int',
name: 'int',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'w2d6rg1qpti3hr411ncwipduu',
name: 'option_order',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '0gxmxv5hv3p5x97xxbrsvv74c',
name: 'order_by',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'y468iy1opl7srygeq16n25k4o',
name: 'can_delete',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: '59ufysqm7otsnshahoo3jfgfj',
name: 'PRIMARY',
unique: true,
fieldIds: ['7vtf8adnbdwii7ja42i7h0l4h'],
createdAt: now,
},
{
id: 'f6tkjzxv8mnvcekdlxu2qlstc',
name: 'bp_xprofile_fields_pkey',
unique: true,
fieldIds: ['7vtf8adnbdwii7ja42i7h0l4h'],
createdAt: now,
},
{
id: '8c8abnkkqp4fole5dugsc2fhg',
name: 'bp_xprofile_fields_group_id_fkey',
unique: false,
fieldIds: ['t0zyx4xgmoenrhuy7qkegfh46'],
createdAt: now,
},
{
id: 'k2uandop8ea39jqg1wo18tn7a',
name: 'bp_xprofile_fields_parent_id_fkey',
unique: false,
fieldIds: ['xrfucst4r34fceup45a5kp7e0'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '182bfxdmh6lcjcdd8lb8g840z',
name: 'bp_messages_meta',
schema: 't_buddypress',
x: 500,
y: 1100,
fields: [
{
id: 'pub98lsm85beib347pzmvu1x0',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'fil4sj973p5ic0cxsofcceg6l',
name: 'message_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'xf1wj4njcxoqu75izy0or0cna',
name: 'meta_key',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'iteeymoc9wk8lp5vxxbn898zk',
name: 'meta_value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
],
indexes: [
{
id: 'b6q0hblal4jlx566siw2gmkrp',
name: 'PRIMARY',
unique: true,
fieldIds: ['pub98lsm85beib347pzmvu1x0'],
createdAt: now,
},
{
id: 'lq0jcpxg4axgahyvx6bfpjao0',
name: 'bp_messages_meta_pkey',
unique: true,
fieldIds: ['pub98lsm85beib347pzmvu1x0'],
createdAt: now,
},
{
id: 'lc5c7vf80mbqsxqrfk4uv62pd',
name: 'bp_messages_meta_message_id_fkey',
unique: false,
fieldIds: ['fil4sj973p5ic0cxsofcceg6l'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '3ruc34u292x94108z8a1zu379',
name: 'bp_invitations',
schema: 't_buddypress',
x: -235.73883210594317,
y: 787.6602925035411,
fields: [
{
id: 'ct172igfnx4394dfx5rvbz9ni',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'rg4rg5uvierhzk5475jlyijit',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'x93lww5rb7buw8efivfj1rpxf',
name: 'inviter_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 's5ur9i91nvhs3d195atltaycy',
name: 'invite_email',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'i46gpg3tiri5q8lsox4dewcwx',
name: 'class',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '37u1kmwapjwgpekgckyaycxr9',
name: 'item_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'jbxvzsw2kvc53blkmxv6fip87',
name: 'component',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'htmi91t305tz37j5iorfvacze',
name: 'type',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'lr9lak2q98qymhiesgkfydi97',
name: 'content',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'mtt04ltj35lw2ipmh3rndogzy',
name: 'date_modified',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'g0i64bz4wax9xhvpyw6x854lv',
name: 'invite_sent',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '4r8imy20wayosy6bnfl92oc9h',
name: 'accepted',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'xnh5h5hza2i7o41c9ngb27l37',
name: 'PRIMARY',
unique: true,
fieldIds: ['ct172igfnx4394dfx5rvbz9ni'],
createdAt: now,
},
{
id: '9bip1nccbmpyly9j1qa5hegeo',
name: 'bp_invitations_pkey',
unique: true,
fieldIds: ['ct172igfnx4394dfx5rvbz9ni'],
createdAt: now,
},
{
id: 'mehv6e36izqekbvg74wpxbzqc',
name: 'idx_bp_invitations_user_id',
unique: false,
fieldIds: ['rg4rg5uvierhzk5475jlyijit'],
createdAt: now,
},
{
id: 'xwf2jc383wn13dw0j9s2nhtcu',
name: 'bp_invitations_inviter_id_fkey',
unique: false,
fieldIds: ['x93lww5rb7buw8efivfj1rpxf'],
createdAt: now,
},
],
color: '#ff9f74',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: '46k8x0rzkammqzi3068tm8412',
name: 'bp_xprofile_data',
schema: 't_buddypress',
x: 223.60679774997882,
y: -825.5282581475768,
fields: [
{
id: 'mz0yqh3t4v0ys13z8u40b5ah7',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'lan4pjnwazuaf2jg61w55ve9o',
name: 'field_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'xqkn6nwcfq91007zu3hywq2y8',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'a1cp59h9t4pix6g7mytjioqrv',
name: 'value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'cdkabesndgz0xf3fyvfmkx567',
name: 'last_updated',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: '5lpj1hhpofr105ovvyo49zcq4',
name: 'PRIMARY',
unique: true,
fieldIds: ['mz0yqh3t4v0ys13z8u40b5ah7'],
createdAt: now,
},
{
id: '9xv8xli7cv6kbtj6bis7semkm',
name: 'bp_xprofile_data_pkey',
unique: true,
fieldIds: ['mz0yqh3t4v0ys13z8u40b5ah7'],
createdAt: now,
},
{
id: 'zg27pyh5fil4lxjhx0e47w0dh',
name: 'idx_bp_xprofile_data_user_id',
unique: false,
fieldIds: ['xqkn6nwcfq91007zu3hywq2y8'],
createdAt: now,
},
{
id: 'q7nxh40so0ucxpnxiwwedgbuj',
name: 'bp_xprofile_data_field_id_fkey',
unique: false,
fieldIds: ['lan4pjnwazuaf2jg61w55ve9o'],
createdAt: now,
},
],
color: '#9ef07a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'b4eufh824hhgys59in0fz3r6x',
name: 'bp_messages_recipients',
schema: 't_buddypress',
x: -300.00000000000006,
y: -199.99999999999994,
fields: [
{
id: '64pefy5dogolrpbs8fdmnazs4',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '8kxoyt4l9rlhgyjdmz0feqqcw',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'uu67r32fln1dzermdh9v4xl7j',
name: 'thread_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'vb3vwvlndjojjzbgfhopl9j6z',
name: 'unread_count',
type: {
id: 'int',
name: 'int',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '2zmctd5l80mjucqt8av57dnip',
name: 'sender_only',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'rwgs4p8dwu3vnaits5dmwks5p',
name: 'is_deleted',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'v7disi7kg0a1dwe8i4yc8d037',
name: 'PRIMARY',
unique: true,
fieldIds: ['64pefy5dogolrpbs8fdmnazs4'],
createdAt: now,
},
{
id: 'l7swasiafhxa726bh1rrsdzbt',
name: 'bp_messages_recipients_pkey',
unique: true,
fieldIds: ['64pefy5dogolrpbs8fdmnazs4'],
createdAt: now,
},
{
id: 'ebubs3chv8k4rm3q7ew5ignmd',
name: 'bp_messages_recipients_user_id_fkey',
unique: false,
fieldIds: ['8kxoyt4l9rlhgyjdmz0feqqcw'],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'd1lncniyjasy10qtlh05875s6',
name: 'bp_messages_messages',
schema: 't_buddypress',
x: -329.67281492796104,
y: 287.8266089682545,
fields: [
{
id: 'xychdr3imufzmp6nm9qblcaoh',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'sqdb2kidpp7o4pf3ujjp4bxpk',
name: 'thread_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'go5u77onu7el641aoe6xqcrqz',
name: 'sender_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'pra80p3v2kqlbkg34id5owb6e',
name: 'subject',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'a7h5f38jlvk22jc8fzn23chby',
name: 'message',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '91ap9bcf3hb95l213h617rsgx',
name: 'date_sent',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: '7g3ttk99o8sgij1fylwd34v4f',
name: 'PRIMARY',
unique: true,
fieldIds: ['xychdr3imufzmp6nm9qblcaoh'],
createdAt: now,
},
{
id: '99wpertbjn3t28cnmp9p0d26o',
name: 'bp_messages_messages_pkey',
unique: true,
fieldIds: ['xychdr3imufzmp6nm9qblcaoh'],
createdAt: now,
},
{
id: 'ahggsxoll37uom53xk9tz5q6i',
name: 'bp_messages_messages_sender_id_fkey',
unique: false,
fieldIds: ['go5u77onu7el641aoe6xqcrqz'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'drvg0j0jvuc41vayd9n7tfnem',
name: 'wp_users',
schema: 't_buddypress',
x: 100,
y: 100,
fields: [
{
id: '20raspr0lc2pnrjndvdb42m8p',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: 'uh6larrv1pjigi7golausxyxk',
name: 'PRIMARY',
unique: true,
fieldIds: ['20raspr0lc2pnrjndvdb42m8p'],
createdAt: now,
},
{
id: 'vvw3mzrkl2nv6ih7eseyfd1s7',
name: 'wp_users_pkey',
unique: true,
fieldIds: ['20raspr0lc2pnrjndvdb42m8p'],
createdAt: now,
},
],
color: '#ff6b8a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'foyo9qc81pcu14cjn29bxui8e',
name: 'bp_user_blogs_blogmeta',
schema: 't_buddypress',
x: 526.393202250021,
y: -375.52825814757676,
fields: [
{
id: 'uh9bn64wny5eu2nl1oxnghdbx',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'gtcvyoa8pt9nta8zyu01030sx',
name: 'blog_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'p3rlhkzfgjc7qhzgfvil5x2hd',
name: 'meta_key',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'xhg4dbd914k9i5rw94pkbs1l5',
name: 'meta_value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
],
indexes: [
{
id: 'd8gx77jexthd0r3scs166nnpr',
name: 'PRIMARY',
unique: true,
fieldIds: ['uh9bn64wny5eu2nl1oxnghdbx'],
createdAt: now,
},
{
id: '1tvucwmwpkrfhyvfevg6xtv23',
name: 'bp_user_blogs_blogmeta_pkey',
unique: true,
fieldIds: ['uh9bn64wny5eu2nl1oxnghdbx'],
createdAt: now,
},
{
id: '5796xarleivcwoqqqqijgnnlp',
name: 'bp_user_blogs_blogmeta_blog_id_fkey',
unique: false,
fieldIds: ['gtcvyoa8pt9nta8zyu01030sx'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'icv205n7ujs3c0ta7s50uihwg',
name: 'bp_notifications_meta',
schema: 't_buddypress',
x: -273.6067977499791,
y: -643.8926261462365,
fields: [
{
id: 's5ps6c2fvb50jr69qfil8ntvd',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'txrrkzzaz7zfb0qq9wasu2fep',
name: 'notification_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'krnmy9klvtz70rccvgbpxy2vk',
name: 'meta_key',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '8sn523hfh8cz86wxqca4yx7zw',
name: 'meta_value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
],
indexes: [
{
id: '2g02ltfwuxzkp6fyzhdndrrae',
name: 'PRIMARY',
unique: true,
fieldIds: ['s5ps6c2fvb50jr69qfil8ntvd'],
createdAt: now,
},
{
id: 'uuujqoybeg115bzr1sm3526cz',
name: 'bp_notifications_meta_pkey',
unique: true,
fieldIds: ['s5ps6c2fvb50jr69qfil8ntvd'],
createdAt: now,
},
{
id: 'qznusp12k9kp3758y8gmpj4sk',
name: 'bp_notifications_meta_notification_id_fkey',
unique: false,
fieldIds: ['txrrkzzaz7zfb0qq9wasu2fep'],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'k4tieh67rm66vqdg6dtacxo6b',
name: 'bp_activity',
schema: 't_buddypress',
x: 500,
y: 100,
fields: [
{
id: 'yom9ch2obagddi4lwenhlzyf1',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'jljs3i2114vg4uqkzg00240ne',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '792bgf4ze8osajticafdbkhmv',
name: 'component',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '52204nhuu7b6jahz92j36pg7v',
name: 'type',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '8sp33bk6kgqdsul68aqnwzgne',
name: 'action',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'i8irbk0n04z011u5095o77tgr',
name: 'content',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'r4aqzojjucrc042m2y26jusrg',
name: 'primary_link',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'p5hrg44y51tviutzq2zght497',
name: 'secondary_item_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'k6iw02o46k5u949uwnemfmh39',
name: 'date_recorded',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'uip6el78tsd5n5g4s9wuxz79g',
name: 'hide_sitewide',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '9isdtlacosyk9cwqgjllbe3ef',
name: 'mptt_left',
type: {
id: 'int',
name: 'int',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'bnsvmca595ls623vud2kemw6s',
name: 'mptt_right',
type: {
id: 'int',
name: 'int',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'jsxaz0z2ovuj7zje2obw7kbe7',
name: 'is_spam',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'rxlnvw9k51mjm8wgiq1yg2cjn',
name: 'PRIMARY',
unique: true,
fieldIds: ['yom9ch2obagddi4lwenhlzyf1'],
createdAt: now,
},
{
id: 'bpumht88796efuogljcvg00q6',
name: 'bp_activity_pkey',
unique: true,
fieldIds: ['yom9ch2obagddi4lwenhlzyf1'],
createdAt: now,
},
{
id: 'pi96h7tsdsr3hqawvgnit5gq9',
name: 'idx_bp_activity_user_id',
unique: false,
fieldIds: ['jljs3i2114vg4uqkzg00240ne'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'l6rhi1on83arxcqhwn0rcigq1',
name: 'bp_notifications',
schema: 't_buddypress',
x: -673.606797749979,
y: -193.89262614623647,
fields: [
{
id: 'xac2in3r7fi62rsi3o8bu9eoo',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'x8mrvjck0lwinz2dlswtu5owk',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '9o45kjngpyhbo2823xcraydqo',
name: 'item_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '3zehu1iwijbjxio7nvknmiy80',
name: 'secondary_item_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '0dvxxp1ex7m86xqrp59kgt69m',
name: 'component_name',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '0t43ke2o3k25gjmos9farxqhv',
name: 'component_action',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'udouxvx394nep8ig0osx8ile2',
name: 'date_notified',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'nniftibohlfd9b9xsqac21vec',
name: 'is_new',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: '2aohib162eftt0lj1ql8luv26',
name: 'PRIMARY',
unique: true,
fieldIds: ['xac2in3r7fi62rsi3o8bu9eoo'],
createdAt: now,
},
{
id: 'r2aerevbub0mo6hd1cjegwwmo',
name: 'bp_notifications_pkey',
unique: true,
fieldIds: ['xac2in3r7fi62rsi3o8bu9eoo'],
createdAt: now,
},
{
id: '0cdjpq6dvylgrckucsdjy4rd2',
name: 'idx_bp_notifications_user_id',
unique: false,
fieldIds: ['x8mrvjck0lwinz2dlswtu5owk'],
createdAt: now,
},
],
color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'oi64stiw9u6qtfsf19zxbyxku',
name: 'bp_xprofile_groups',
schema: 't_buddypress',
x: 1023.6067977499788,
y: -825.5282581475768,
fields: [
{
id: '8v8kdunpl37k799mf5uasi22k',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '5nugmovumfe8nz0ycc9wjqt19',
name: 'name',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '0iz6o97l62ko8irmg3ggy5rse',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'f5a25u2vbfsg5cedofniusap9',
name: 'group_order',
type: {
id: 'int',
name: 'int',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'voz9ixhawap9yz8w3nh1j2epo',
name: 'can_delete',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: '8j5drgbf6mo6d6j4s5fh7wap5',
name: 'PRIMARY',
unique: true,
fieldIds: ['8v8kdunpl37k799mf5uasi22k'],
createdAt: now,
},
{
id: 'tcv4wtkz6roviu5htu37n4wz4',
name: 'bp_xprofile_groups_pkey',
unique: true,
fieldIds: ['8v8kdunpl37k799mf5uasi22k'],
createdAt: now,
},
],
color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'qgfirumgbbvwujwlnhfkmmoxw',
name: 'bp_xprofile_meta',
schema: 't_buddypress',
x: 1040.6309954517574,
y: -440.8820078303851,
fields: [
{
id: 'v8cps72bt4ri289rjs0rmf8nz',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '6ih5f6rsk2ux94gmhrzer60xe',
name: 'object_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
{
id: 'kq9q3w8dieie48j40i8hnlpne',
name: 'object_type',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'ibq07eeib0kcpaxibzbqhx6tq',
name: 'meta_key',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'o5vrgnbz549lxpc2ov62qfpjo',
name: 'meta_value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
],
indexes: [
{
id: '6gao70akr8oi3r4maqbpfx9q5',
name: 'PRIMARY',
unique: true,
fieldIds: ['v8cps72bt4ri289rjs0rmf8nz'],
createdAt: now,
},
{
id: '5a0jsrji97549w0gbjfu6weg2',
name: 'bp_xprofile_meta_pkey',
unique: true,
fieldIds: ['v8cps72bt4ri289rjs0rmf8nz'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'rud8tedore8ir3u7080m1liyh',
name: 'bp_groups_members',
schema: 't_buddypress',
x: 117.54078057199685,
y: 681.5942753255588,
fields: [
{
id: 'adg5x0olbsyh7ber4l3o4qnpp',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'fsjydmw5gwnj9lu0bj1v2ufvc',
name: 'group_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'qkf64p60rlagsd7y3cekv2eom',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '24g8m8h5z8972cfsqy3l84zoy',
name: 'inviter_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'nmqt3a10610a7ghuyy4eiizsl',
name: 'is_admin',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '9c31hkv6jq9e295wly8kro6gc',
name: 'is_mod',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'bn02ly7tqme86wcms7st35ynh',
name: 'user_title',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'qpfklesde8dsm0quemiexc2ww',
name: 'date_modified',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'qhdf74hjlitk8qcfyiymnvhdg',
name: 'comments',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: '090hnagkggla4h9jbkfc7c05l',
name: 'is_confirmed',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '2xkcludyjl3b1xhtcaji1sv10',
name: 'is_banned',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'yq4nb4pq30jc076o1qhd47x4q',
name: 'invite_sent',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: '3b2uahu116xucljga0v0yyylh',
name: 'PRIMARY',
unique: true,
fieldIds: ['adg5x0olbsyh7ber4l3o4qnpp'],
createdAt: now,
},
{
id: '6ax7l6ki01u4bx4v5e4q7r830',
name: 'bp_groups_members_pkey',
unique: true,
fieldIds: ['adg5x0olbsyh7ber4l3o4qnpp'],
createdAt: now,
},
{
id: '5zgvboxkn5dq8vp349dvfaccb',
name: 'bp_groups_members_group_id_fkey',
unique: false,
fieldIds: ['fsjydmw5gwnj9lu0bj1v2ufvc'],
createdAt: now,
},
{
id: 'c27jmsuf8vnmbqa2hynfnmhtp',
name: 'bp_groups_members_inviter_id_fkey',
unique: false,
fieldIds: ['24g8m8h5z8972cfsqy3l84zoy'],
createdAt: now,
},
{
id: '3n8wb4ik5sfc49kj8t3wkror1',
name: 'bp_groups_members_user_id_fkey',
unique: false,
fieldIds: ['qkf64p60rlagsd7y3cekv2eom'],
createdAt: now,
},
],
color: '#ff9f74',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'rwwyt7vhwolkbjdlukin5422o',
name: 'bp_groups_groupmeta',
schema: 't_buddypress',
x: 1217.540780571997,
y: 681.5942753255588,
fields: [
{
id: 'lfntt8w81u5gmgbnbtnplva86',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'y8jmvj2vjy3c6xy6vgf655bbr',
name: 'group_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '4gvewxkofo9zdcwkl9bhzndrd',
name: 'meta_key',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'tz0z7k4ty71rvspwusrbjak6d',
name: 'meta_value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
],
indexes: [
{
id: 'j37qh6fwv28x8foq26sfy4elv',
name: 'PRIMARY',
unique: true,
fieldIds: ['lfntt8w81u5gmgbnbtnplva86'],
createdAt: now,
},
{
id: 'h5j5bovqnehl6946dy7v92iy8',
name: 'bp_groups_groupmeta_pkey',
unique: true,
fieldIds: ['lfntt8w81u5gmgbnbtnplva86'],
createdAt: now,
},
{
id: '93psw512f21nknq3t410850uo',
name: 'bp_groups_groupmeta_group_id_fkey',
unique: false,
fieldIds: ['y8jmvj2vjy3c6xy6vgf655bbr'],
createdAt: now,
},
],
color: '#7175fa',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'sov1d5texnfqy3zv4jy1ii3qm',
name: 'bp_groups',
schema: 't_buddypress',
x: 817.5407805719968,
y: 681.5942753255588,
fields: [
{
id: 'fofypge347j4obqrf5v82ro9l',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'ska8vst7pewde5rooetpvxd0l',
name: 'creator_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'e6vzavakdd4havqdj3d7p8e32',
name: 'name',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'vcfuhswj7jc3boqrxyieah16d',
name: 'slug',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: true,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'ngh1vn7lb0fj3tjns01vof1pe',
name: 'description',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'wilo84pw70no0omgwvt3qlmwn',
name: 'status',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: false,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'sdlkvv6m443a3gcrduff2kd84',
name: 'parent_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'l9qjkg2lo7kwpjlu93kv8g438',
name: 'enable_forum',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: '91mwpqnbn9bb4gltcuir0ex6b',
name: 'date_created',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: '5xepzfdw2ewbyfg163jwbtvpw',
name: 'PRIMARY',
unique: true,
fieldIds: ['fofypge347j4obqrf5v82ro9l'],
createdAt: now,
},
{
id: 'kem0ujqxyml49r6am9oyiaazt',
name: 'bp_groups_pkey',
unique: true,
fieldIds: ['fofypge347j4obqrf5v82ro9l'],
createdAt: now,
},
{
id: 'wizrrdkditzukj6s5by0609zr',
name: 'bp_groups_slug_key',
unique: true,
fieldIds: ['vcfuhswj7jc3boqrxyieah16d'],
createdAt: now,
},
{
id: 's354dfgb1su0kmytkwxcq5k8p',
name: 'idx_bp_groups_slug',
unique: false,
fieldIds: ['vcfuhswj7jc3boqrxyieah16d'],
createdAt: now,
},
{
id: '3vzdx250alcfgb3x50bdsji98',
name: 'bp_groups_creator_id_fkey',
unique: false,
fieldIds: ['ska8vst7pewde5rooetpvxd0l'],
createdAt: now,
},
{
id: 'nh1dnt80g50ewwqs6edtbwijm',
name: 'bp_groups_parent_id_fkey',
unique: false,
fieldIds: ['sdlkvv6m443a3gcrduff2kd84'],
createdAt: now,
},
],
color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 't4v5ai87elxmw42wa9mwbd90t',
name: 'bp_activity_meta',
schema: 't_buddypress',
x: 900,
y: 100,
fields: [
{
id: 'kac8bvom7y6cyybcf3x86dd2e',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: '7dnj2czueumn0myadaqbrs744',
name: 'activity_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'j5hmc7mymxkf2cl85p709unx0',
name: 'meta_key',
type: {
id: 'varchar',
name: 'varchar',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
{
id: 'c444xh5dqwwb1qw0umx2tk160',
name: 'meta_value',
type: {
id: 'text',
name: 'text',
},
primaryKey: false,
unique: false,
nullable: true,
collation: 'utf8mb4_0900_ai_ci',
createdAt: now,
},
],
indexes: [
{
id: '5j4d4yiejibpvnsg0uo3ham4l',
name: 'PRIMARY',
unique: true,
fieldIds: ['kac8bvom7y6cyybcf3x86dd2e'],
createdAt: now,
},
{
id: '2i9h887o98jv0jkhsy16a9i40',
name: 'bp_activity_meta_pkey',
unique: true,
fieldIds: ['kac8bvom7y6cyybcf3x86dd2e'],
createdAt: now,
},
{
id: 'lz3coh4qysk2fryq29zq2ej1w',
name: 'bp_activity_meta_activity_id_fkey',
unique: false,
fieldIds: ['7dnj2czueumn0myadaqbrs744'],
createdAt: now,
},
],
color: '#9ef07a',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'y0iqkz3dzc92fatqrk8n84jwr',
name: 'bp_friends',
schema: 't_buddypress',
x: 423.60679774997897,
y: 543.8926261462366,
fields: [
{
id: 'ss9jn6mdx88oshid82iz85q1j',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'vs7s6ikaopi6fcn2kphxpzo6q',
name: 'initiator_user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'zwqbf58u4nknoa8ryavdoljgw',
name: 'friend_user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'jwdwp5l5rfkl5w3qt7jjsvtkp',
name: 'is_confirmed',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'dfofwefhygheh9o3ohlpz7lo6',
name: 'is_limited',
type: {
id: 'tinyint',
name: 'tinyint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'hmnmctbhjp1gxxjqcd1orfupk',
name: 'date_created',
type: {
id: 'timestamp',
name: 'timestamp',
},
primaryKey: false,
unique: false,
nullable: false,
createdAt: now,
},
],
indexes: [
{
id: '8fj0yuldcsphv3f8b1f8tcmks',
name: 'PRIMARY',
unique: true,
fieldIds: ['ss9jn6mdx88oshid82iz85q1j'],
createdAt: now,
},
{
id: 'k3sguvvlzpb3lakbq667rqlw6',
name: 'bp_friends_pkey',
unique: true,
fieldIds: ['ss9jn6mdx88oshid82iz85q1j'],
createdAt: now,
},
{
id: 'mhlb4fxyzx318pztercs941yc',
name: 'idx_bp_friends_initiator_user_id',
unique: false,
fieldIds: ['vs7s6ikaopi6fcn2kphxpzo6q'],
createdAt: now,
},
{
id: '5oom9blim2zodtui42qs63rke',
name: 'idx_bp_friends_friend_user_id',
unique: false,
fieldIds: ['zwqbf58u4nknoa8ryavdoljgw'],
createdAt: now,
},
],
color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: now,
},
{
id: 'yha897emvtfpy8sh1dhkp8ces',
name: 'bp_user_blogs',
schema: 't_buddypress',
x: 126.39320225002098,
y: -375.52825814757676,
fields: [
{
id: 'mo2j1vu6o8anxcm1tx9mwav74',
name: 'id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: true,
unique: true,
nullable: false,
createdAt: now,
},
{
id: 'h4kql937zhahikpk1dr3fto1t',
name: 'user_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
{
id: 'vchjh7pwpstxbwlrjj66z1r8v',
name: 'blog_id',
type: {
id: 'bigint',
name: 'bigint',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: now,
},
],
indexes: [
{
id: 'ils79hwa03ek2mpl2dodq9hib',
name: 'PRIMARY',
unique: true,
fieldIds: ['mo2j1vu6o8anxcm1tx9mwav74'],
createdAt: now,
},
{
id: 'a966e9qm1jz4b02u2ar5430s8',
name: 'bp_user_blogs_pkey',
unique: true,
fieldIds: ['mo2j1vu6o8anxcm1tx9mwav74'],
createdAt: now,
},
{
id: 'awk6o2zllypm6u8z8z536nmof',
name: 'bp_user_blogs_user_id_fkey',
unique: false,
fieldIds: ['h4kql937zhahikpk1dr3fto1t'],
createdAt: now,
},
],
color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: now,
},
],
relationships: [
{
id: '25githy0r9hmzkgpw8xslu069',
name: 'bp_messages_messages_sender_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'd1lncniyjasy10qtlh05875s6',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'go5u77onu7el641aoe6xqcrqz',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '2ihrl7c1gt40amlagoeyla0xo',
name: 'bp_groups_creator_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'ska8vst7pewde5rooetpvxd0l',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '48m06juagc4v5dm6oicjou4js',
name: 'bp_invitations_inviter_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '3ruc34u292x94108z8a1zu379',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'x93lww5rb7buw8efivfj1rpxf',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '6iomkd1qtcxdkqppl9qakhcwi',
name: 'bp_activity_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'k4tieh67rm66vqdg6dtacxo6b',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'jljs3i2114vg4uqkzg00240ne',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '6t62nss53ov0ub28fl1ywbr3q',
name: 'bp_groups_members_group_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'rud8tedore8ir3u7080m1liyh',
targetTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
sourceFieldId: 'fsjydmw5gwnj9lu0bj1v2ufvc',
targetFieldId: 'fofypge347j4obqrf5v82ro9l',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: '826yttkkpbp1qpb7dbvl3f08f',
name: 'bp_user_blogs_blogmeta_blog_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'foyo9qc81pcu14cjn29bxui8e',
targetTableId: 'yha897emvtfpy8sh1dhkp8ces',
sourceFieldId: 'gtcvyoa8pt9nta8zyu01030sx',
targetFieldId: 'mo2j1vu6o8anxcm1tx9mwav74',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'ag2700w0ai7czm66mt244ba3v',
name: 'bp_notifications_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'l6rhi1on83arxcqhwn0rcigq1',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'x8mrvjck0lwinz2dlswtu5owk',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'b6ggz8kyuuvdj0igu0ujz9p8r',
name: 'bp_xprofile_data_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '46k8x0rzkammqzi3068tm8412',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'xqkn6nwcfq91007zu3hywq2y8',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'bk7yfpuxwz0ofzm3f7pke79rc',
name: 'bp_groups_members_inviter_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'rud8tedore8ir3u7080m1liyh',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: '24g8m8h5z8972cfsqy3l84zoy',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'bsr2wg750445im2zv427ui8xt',
name: 'bp_groups_groupmeta_group_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'rwwyt7vhwolkbjdlukin5422o',
targetTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
sourceFieldId: 'y8jmvj2vjy3c6xy6vgf655bbr',
targetFieldId: 'fofypge347j4obqrf5v82ro9l',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'd5hybsjkjhifvwqhkd6thj5hw',
name: 'bp_xprofile_data_field_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '46k8x0rzkammqzi3068tm8412',
targetTableId: '0ucnx1brbrk8xl5nlofp9uae1',
sourceFieldId: 'lan4pjnwazuaf2jg61w55ve9o',
targetFieldId: '7vtf8adnbdwii7ja42i7h0l4h',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'hwg1gpfjksdxjr8tcps7pjzg8',
name: 'bp_groups_parent_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
targetTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
sourceFieldId: 'sdlkvv6m443a3gcrduff2kd84',
targetFieldId: 'fofypge347j4obqrf5v82ro9l',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'i7wzeewx16b9l7wez3mymy6ni',
name: 'bp_notifications_meta_notification_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'icv205n7ujs3c0ta7s50uihwg',
targetTableId: 'l6rhi1on83arxcqhwn0rcigq1',
sourceFieldId: 'txrrkzzaz7zfb0qq9wasu2fep',
targetFieldId: 'xac2in3r7fi62rsi3o8bu9eoo',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'n87thw0wj8iduz73lmd6ebg74',
name: 'bp_xprofile_fields_group_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '0ucnx1brbrk8xl5nlofp9uae1',
targetTableId: 'oi64stiw9u6qtfsf19zxbyxku',
sourceFieldId: 't0zyx4xgmoenrhuy7qkegfh46',
targetFieldId: '8v8kdunpl37k799mf5uasi22k',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'o68lf81yjjnpccjbepif3dxwh',
name: 'bp_friends_friend_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'y0iqkz3dzc92fatqrk8n84jwr',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'zwqbf58u4nknoa8ryavdoljgw',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'oggu3g17vtfkbh0aaefl5ha6p',
name: 'bp_user_blogs_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'yha897emvtfpy8sh1dhkp8ces',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'h4kql937zhahikpk1dr3fto1t',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'qvorjwmwiplluwmt3y0lsy1ip',
name: 'bp_messages_recipients_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'b4eufh824hhgys59in0fz3r6x',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: '8kxoyt4l9rlhgyjdmz0feqqcw',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'qz6b9dl88cc80z7wf78pnk7tg',
name: 'bp_messages_meta_message_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '182bfxdmh6lcjcdd8lb8g840z',
targetTableId: '059yiztfxc81c40ou8axzp6ed',
sourceFieldId: 'fil4sj973p5ic0cxsofcceg6l',
targetFieldId: '4tk0dxzvxghbx6h4kvbebwyix',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'rknag7on3me2lprpohkhgennd',
name: 'bp_friends_initiator_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'y0iqkz3dzc92fatqrk8n84jwr',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'vs7s6ikaopi6fcn2kphxpzo6q',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'sbf19ftk3kzei3yh41602v1uw',
name: 'bp_activity_meta_activity_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 't4v5ai87elxmw42wa9mwbd90t',
targetTableId: 'k4tieh67rm66vqdg6dtacxo6b',
sourceFieldId: '7dnj2czueumn0myadaqbrs744',
targetFieldId: 'yom9ch2obagddi4lwenhlzyf1',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'sbrhn18o9p9bvci4dkfsppten',
name: 'bp_invitations_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '3ruc34u292x94108z8a1zu379',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'rg4rg5uvierhzk5475jlyijit',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'vlkhmklehzon6s5si33l1krv0',
name: 'bp_xprofile_fields_parent_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: '0ucnx1brbrk8xl5nlofp9uae1',
targetTableId: '0ucnx1brbrk8xl5nlofp9uae1',
sourceFieldId: 'xrfucst4r34fceup45a5kp7e0',
targetFieldId: '7vtf8adnbdwii7ja42i7h0l4h',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
{
id: 'z12d64p49vlhy7qyl8bmq29p6',
name: 'bp_groups_members_user_id_fkey',
sourceSchema: 't_buddypress',
targetSchema: 't_buddypress',
sourceTableId: 'rud8tedore8ir3u7080m1liyh',
targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
sourceFieldId: 'qkf64p60rlagsd7y3cekv2eom',
targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: now,
},
],
dependencies: [],
},
};