290 lines
7.8 KiB
JSON
290 lines
7.8 KiB
JSON
{
|
|
"db_name": "MySQL",
|
|
"query": "\nSELECT\n u.id as `id: u64`,\n u.token as `token: tokens::tokens::users::UserToken`,\n u.username,\n u.display_name,\n u.username_is_not_customized as `username_is_not_customized: bool`,\n u.email_address,\n u.email_confirmed as `email_confirmed: bool`,\n u.is_without_password as `is_without_password: bool`,\n u.ip_address_creation,\n u.maybe_source as `maybe_source: enums::by_table::users::user_signup_source::UserSignupSource`,\n u.maybe_signup_method as `maybe_signup_method: enums::by_table::users::user_signup_method::UserSignupMethod`,\n u.created_at,\n u.maybe_referral_url,\n u.is_temporary as `is_temporary: bool`,\n us.subscription_namespace,\n us.subscription_product_slug,\n us.maybe_stripe_subscription_id,\n us.maybe_stripe_customer_id,\n us.maybe_stripe_product_id,\n us.maybe_stripe_price_id,\n us.maybe_stripe_subscription_status,\n us.maybe_stripe_recurring_interval,\n us.maybe_stripe_invoice_is_paid as `maybe_stripe_invoice_is_paid: bool`,\n us.maybe_cancel_at,\n us.maybe_canceled_at\nFROM users AS u\nINNER JOIN user_subscriptions AS us ON u.token = us.user_token\nWHERE\n u.id < ?\n AND u.user_deleted_at IS NULL\n AND u.mod_deleted_at IS NULL\nORDER BY u.id DESC\nLIMIT ?\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id: u64",
|
|
"type_info": {
|
|
"type": "LongLong",
|
|
"flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT",
|
|
"char_set": 63,
|
|
"max_size": 20
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "token: tokens::tokens::users::UserToken",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | UNIQUE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "username",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | UNIQUE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 80
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "display_name",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 80
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "username_is_not_customized: bool",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "email_address",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | UNIQUE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "email_confirmed: bool",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "is_without_password: bool",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "ip_address_creation",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 160
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "maybe_source: enums::by_table::users::user_signup_source::UserSignupSource",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "maybe_signup_method: enums::by_table::users::user_signup_method::UserSignupMethod",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "created_at",
|
|
"type_info": {
|
|
"type": "Timestamp",
|
|
"flags": "NOT_NULL | BINARY | TIMESTAMP",
|
|
"char_set": 63,
|
|
"max_size": 19
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 12,
|
|
"name": "maybe_referral_url",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 13,
|
|
"name": "is_temporary: bool",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "NOT_NULL",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 14,
|
|
"name": "subscription_namespace",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | MULTIPLE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 15,
|
|
"name": "subscription_product_slug",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "NOT_NULL | MULTIPLE_KEY | BINARY | NO_DEFAULT_VALUE",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 16,
|
|
"name": "maybe_stripe_subscription_id",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "UNIQUE_KEY | BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 17,
|
|
"name": "maybe_stripe_customer_id",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "MULTIPLE_KEY | BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 18,
|
|
"name": "maybe_stripe_product_id",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "MULTIPLE_KEY | BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 19,
|
|
"name": "maybe_stripe_price_id",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 1020
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 20,
|
|
"name": "maybe_stripe_subscription_status",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "MULTIPLE_KEY | BINARY",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 21,
|
|
"name": "maybe_stripe_recurring_interval",
|
|
"type_info": {
|
|
"type": "VarString",
|
|
"flags": "BINARY",
|
|
"char_set": 224,
|
|
"max_size": 128
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 22,
|
|
"name": "maybe_stripe_invoice_is_paid: bool",
|
|
"type_info": {
|
|
"type": "Tiny",
|
|
"flags": "",
|
|
"char_set": 63,
|
|
"max_size": 1
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 23,
|
|
"name": "maybe_cancel_at",
|
|
"type_info": {
|
|
"type": "Timestamp",
|
|
"flags": "BINARY",
|
|
"char_set": 63,
|
|
"max_size": 19
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 24,
|
|
"name": "maybe_canceled_at",
|
|
"type_info": {
|
|
"type": "Timestamp",
|
|
"flags": "BINARY",
|
|
"char_set": 63,
|
|
"max_size": 19
|
|
}
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 2
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true
|
|
]
|
|
},
|
|
"hash": "83840fa1a0712a326a26ae146a819f67a44fae927f294780d89892270075ebb7"
|
|
}
|