183 lines
4.3 KiB
JSON
183 lines
4.3 KiB
JSON
|
|
{
|
||
|
|
"id": "4602e85b-a3cf-4168-881e-a95e9316f325",
|
||
|
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
||
|
|
"version": "7",
|
||
|
|
"dialect": "postgresql",
|
||
|
|
"tables": {
|
||
|
|
"public.balances": {
|
||
|
|
"name": "balances",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"userId": {
|
||
|
|
"name": "userId",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"guildId": {
|
||
|
|
"name": "guildId",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"balance": {
|
||
|
|
"name": "balance",
|
||
|
|
"type": "bigint",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"default": "0::bigint"
|
||
|
|
},
|
||
|
|
"lastMessageHour": {
|
||
|
|
"name": "lastMessageHour",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"balances_userId_users_id_fk": {
|
||
|
|
"name": "balances_userId_users_id_fk",
|
||
|
|
"tableFrom": "balances",
|
||
|
|
"tableTo": "users",
|
||
|
|
"columnsFrom": [
|
||
|
|
"userId"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"balances_guildId_guilds_id_fk": {
|
||
|
|
"name": "balances_guildId_guilds_id_fk",
|
||
|
|
"tableFrom": "balances",
|
||
|
|
"tableTo": "guilds",
|
||
|
|
"columnsFrom": [
|
||
|
|
"guildId"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"balances_userId_guildId_pk": {
|
||
|
|
"name": "balances_userId_guildId_pk",
|
||
|
|
"columns": [
|
||
|
|
"userId",
|
||
|
|
"guildId"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.guilds": {
|
||
|
|
"name": "guilds",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"discordId": {
|
||
|
|
"name": "discordId",
|
||
|
|
"type": "bigint",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"displayName": {
|
||
|
|
"name": "displayName",
|
||
|
|
"type": "varchar(80)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"guilds_discordId_unique": {
|
||
|
|
"name": "guilds_discordId_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"discordId"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.users": {
|
||
|
|
"name": "users",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"discordId": {
|
||
|
|
"name": "discordId",
|
||
|
|
"type": "bigint",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"username": {
|
||
|
|
"name": "username",
|
||
|
|
"type": "varchar(34)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"displayName": {
|
||
|
|
"name": "displayName",
|
||
|
|
"type": "varchar(64)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"reputation": {
|
||
|
|
"name": "reputation",
|
||
|
|
"type": "smallint",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"users_discordId_unique": {
|
||
|
|
"name": "users_discordId_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"discordId"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"enums": {},
|
||
|
|
"schemas": {},
|
||
|
|
"sequences": {},
|
||
|
|
"roles": {},
|
||
|
|
"policies": {},
|
||
|
|
"views": {},
|
||
|
|
"_meta": {
|
||
|
|
"columns": {},
|
||
|
|
"schemas": {},
|
||
|
|
"tables": {}
|
||
|
|
}
|
||
|
|
}
|