252 lines
5.8 KiB
JSON
252 lines
5.8 KiB
JSON
|
|
{
|
||
|
|
"version": "5",
|
||
|
|
"dialect": "pg",
|
||
|
|
"id": "34122d24-88e0-430e-862c-2168b0f866cb",
|
||
|
|
"prevId": "ea430ef9-8e30-4cb6-9985-d03f43656cf8",
|
||
|
|
"tables": {
|
||
|
|
"accounts": {
|
||
|
|
"name": "accounts",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"userId": {
|
||
|
|
"name": "userId",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"type": {
|
||
|
|
"name": "type",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"provider": {
|
||
|
|
"name": "provider",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"providerAccountId": {
|
||
|
|
"name": "providerAccountId",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"refresh_token": {
|
||
|
|
"name": "refresh_token",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"access_token": {
|
||
|
|
"name": "access_token",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"expires_at": {
|
||
|
|
"name": "expires_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"token_type": {
|
||
|
|
"name": "token_type",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"scope": {
|
||
|
|
"name": "scope",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"id_token": {
|
||
|
|
"name": "id_token",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"session_state": {
|
||
|
|
"name": "session_state",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"Account_provider_providerAccountId_key": {
|
||
|
|
"name": "Account_provider_providerAccountId_key",
|
||
|
|
"columns": [
|
||
|
|
"provider",
|
||
|
|
"providerAccountId"
|
||
|
|
],
|
||
|
|
"isUnique": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"accounts_userId_users_id_fk": {
|
||
|
|
"name": "accounts_userId_users_id_fk",
|
||
|
|
"tableFrom": "accounts",
|
||
|
|
"tableTo": "users",
|
||
|
|
"columnsFrom": [
|
||
|
|
"userId"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {}
|
||
|
|
},
|
||
|
|
"sessions": {
|
||
|
|
"name": "sessions",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"sessionToken": {
|
||
|
|
"name": "sessionToken",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"userId": {
|
||
|
|
"name": "userId",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"expires": {
|
||
|
|
"name": "expires",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"Session_sessionToken_key": {
|
||
|
|
"name": "Session_sessionToken_key",
|
||
|
|
"columns": [
|
||
|
|
"sessionToken"
|
||
|
|
],
|
||
|
|
"isUnique": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"sessions_userId_users_id_fk": {
|
||
|
|
"name": "sessions_userId_users_id_fk",
|
||
|
|
"tableFrom": "sessions",
|
||
|
|
"tableTo": "users",
|
||
|
|
"columnsFrom": [
|
||
|
|
"userId"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {}
|
||
|
|
},
|
||
|
|
"users": {
|
||
|
|
"name": "users",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"name": "name",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"email": {
|
||
|
|
"name": "email",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"emailVerified": {
|
||
|
|
"name": "emailVerified",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"image": {
|
||
|
|
"name": "image",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"User_email_key": {
|
||
|
|
"name": "User_email_key",
|
||
|
|
"columns": [
|
||
|
|
"email"
|
||
|
|
],
|
||
|
|
"isUnique": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {}
|
||
|
|
},
|
||
|
|
"verificationToken": {
|
||
|
|
"name": "verificationToken",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"identifier": {
|
||
|
|
"name": "identifier",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"token": {
|
||
|
|
"name": "token",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"expires": {
|
||
|
|
"name": "expires",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"VerificationToken_identifier_token_key": {
|
||
|
|
"name": "VerificationToken_identifier_token_key",
|
||
|
|
"columns": [
|
||
|
|
"identifier",
|
||
|
|
"token"
|
||
|
|
],
|
||
|
|
"isUnique": true
|
||
|
|
},
|
||
|
|
"VerificationToken_token_key": {
|
||
|
|
"name": "VerificationToken_token_key",
|
||
|
|
"columns": [
|
||
|
|
"token"
|
||
|
|
],
|
||
|
|
"isUnique": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"enums": {},
|
||
|
|
"schemas": {},
|
||
|
|
"_meta": {
|
||
|
|
"schemas": {},
|
||
|
|
"tables": {},
|
||
|
|
"columns": {}
|
||
|
|
}
|
||
|
|
}
|