mabel/sqlx-data.json
Hamcha 07e4617710
Some checks reported errors
continuous-integration/drone/push Build was killed
add dockerfile and CI
2023-07-05 15:14:01 +02:00

215 lines
No EOL
5.2 KiB
JSON

{
"db": "PostgreSQL",
"0e89d76bdba2178afc2fb2c2a5eba0404e68e7a1d26d9fd5f1161f055dad92df": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Uuid"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Uuid",
"Varchar",
"Timestamp",
"Timestamp"
]
}
},
"query": "INSERT INTO sessions (actor, secret, created_at, expires_at) VALUES ($1, $2, $3, $4) RETURNING id"
},
"11e96cfd8c2736f13ce55975ea910dd68640f6f14e38a4b3342d514804e3de27": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Uuid"
]
}
},
"query": "DELETE FROM sessions WHERE id = $1"
},
"35deaad55b84124dcba02c555718fe815003e3f50b1c8ee2fc7e540009fa5aef": {
"describe": {
"columns": [
{
"name": "empty",
"ordinal": 0,
"type_info": "Bool"
}
],
"nullable": [
null
],
"parameters": {
"Left": []
}
},
"query": "SELECT CASE WHEN EXISTS(SELECT 1 FROM users) THEN false ELSE true END AS empty;"
},
"742b9eef92ad404b3b1ec285ce8b99e945b1b910f25bff376466c704a79fc9c8": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Timestamp"
]
}
},
"query": "DELETE FROM sessions WHERE expires_at < $1"
},
"9f37c6f3929ca1bf2a6ec55291d652b216419fd13e27b3d61d23c9cf900c501e": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Uuid"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Timestamp",
"Uuid"
]
}
},
"query": "UPDATE sessions SET expires_at = $1 WHERE id = $2 RETURNING id"
},
"c567d96c92638902bc90f5fc0aa5bbbe0b6d26607767720a87fdbe67335a0180": {
"describe": {
"columns": [
{
"name": "session_id",
"ordinal": 0,
"type_info": "Uuid"
},
{
"name": "session_actor",
"ordinal": 1,
"type_info": "Uuid"
},
{
"name": "secret",
"ordinal": 2,
"type_info": "Varchar"
},
{
"name": "session_created_at",
"ordinal": 3,
"type_info": "Timestamp"
},
{
"name": "expires_at",
"ordinal": 4,
"type_info": "Timestamp"
},
{
"name": "user_id",
"ordinal": 5,
"type_info": "Uuid"
},
{
"name": "name",
"ordinal": 6,
"type_info": "Varchar"
},
{
"name": "email",
"ordinal": 7,
"type_info": "Varchar"
},
{
"name": "display_name",
"ordinal": 8,
"type_info": "Varchar"
},
{
"name": "bio",
"ordinal": 9,
"type_info": "Text"
},
{
"name": "roles",
"ordinal": 10,
"type_info": "UuidArray"
},
{
"name": "user_created_at",
"ordinal": 11,
"type_info": "Timestamp"
},
{
"name": "modified_at",
"ordinal": 12,
"type_info": "Timestamp"
},
{
"name": "deleted_at",
"ordinal": 13,
"type_info": "Timestamp"
}
],
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
true,
true,
false,
false,
true,
true
],
"parameters": {
"Left": [
"Uuid"
]
}
},
"query": "SELECT\n sessions.id AS session_id,\n sessions.actor AS session_actor,\n sessions.secret,\n sessions.created_at AS session_created_at,\n sessions.expires_at,\n users.id AS user_id,\n users.name,\n users.email,\n users.display_name,\n users.bio,\n users.roles,\n users.created_at AS user_created_at,\n users.modified_at,\n users.deleted_at\n FROM\n sessions\n JOIN\n users ON sessions.actor = users.id\n WHERE\n sessions.id = $1"
},
"f054746ab3092a8671604c9388e02220d62d337e9d199fa9102c0363a72f6940": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Uuid"
},
{
"name": "created_at",
"ordinal": 1,
"type_info": "Timestamp"
}
],
"nullable": [
false,
false
],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"UuidArray"
]
}
},
"query": "INSERT INTO users ( name, password, roles ) VALUES ( $1,$2,$3 ) RETURNING id, created_at"
}
}