235 lines
6.1 KiB
JSON
235 lines
6.1 KiB
JSON
{
|
|
"db_name": "MySQL",
|
|
"query": "\nSELECT\n category.token as category_token,\n category.model_type,\n category.maybe_super_category_token,\n category.can_directly_have_models,\n category.can_have_subcategories,\n category.can_only_mods_apply,\n category.name,\n category.maybe_dropdown_name,\n category.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n users.email_gravatar_hash AS creator_gravatar_hash,\n category.creator_ip_address_creation,\n category.creator_ip_address_last_update,\n category.is_mod_approved,\n category.maybe_mod_comments,\n category.maybe_mod_user_token,\n category.created_at,\n category.updated_at,\n category.deleted_at\nFROM model_categories AS category\nJOIN users\nON category.creator_user_token = users.token\nWHERE\n category.token = ?\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "category_token",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | UNIQUE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "model_type",
|
|
"type_info": {
|
|
"type": "String",
|
|
"flags": "NOT_NULL | MULTIPLE_KEY | BINARY | ENUM",
|
|
"char_set": 224,
|
|
"max_size": 28
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "maybe_super_category_token",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "MULTIPLE_KEY | BINARY",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "can_directly_have_models",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL | MULTIPLE_KEY",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "can_have_subcategories",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL | MULTIPLE_KEY",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "can_only_mods_apply",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "name",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "maybe_dropdown_name",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 80
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "creator_user_token",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | MULTIPLE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "creator_username",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | UNIQUE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 80
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "creator_display_name",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 80
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "creator_gravatar_hash",
|
|
"type_info": {
|
|
"type": "String",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 12,
|
|
"name": "creator_ip_address_creation",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 160
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 13,
|
|
"name": "creator_ip_address_last_update",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 160
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 14,
|
|
"name": "is_mod_approved",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "MULTIPLE_KEY",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 15,
|
|
"name": "maybe_mod_comments",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 16,
|
|
"name": "maybe_mod_user_token",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 17,
|
|
"name": "created_at",
|
|
"type_info": {
|
|
"type": "Timestamp",
|
|
"flags": "NOT_NULL | BINARY | TIMESTAMP",
|
|
"char_set": 63,
|
|
"max_size": 19
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 18,
|
|
"name": "updated_at",
|
|
"type_info": {
|
|
"type": "Timestamp",
|
|
"flags": "NOT_NULL | BINARY | TIMESTAMP | ON_UPDATE_NOW",
|
|
"char_set": 63,
|
|
"max_size": 19
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 19,
|
|
"name": "deleted_at",
|
|
"type_info": {
|
|
"type": "Timestamp",
|
|
"flags": "BINARY",
|
|
"char_set": 63,
|
|
"max_size": 19
|
|
}
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
true
|
|
]
|
|
},
|
|
"hash": "87d7261dd2a589220c5539f51dde42ef2407677f7ece7968761426c6fd0e0360"
|
|
}
|