-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apex-1631 - szulinap bekeres ujrapingeles (#15)
* feat: birthday be able to null * chore: rename migration * feat: save user when ask his birthday * feat: saveBirthday without birthday date * feat: add getUsersWhoseBirthdayIsMissing query * feat: send birthday reminder if it is missing from the db * fix: reset pnpm-lock * fix: askBirthday unit test * fix: team_id when save birhtday * fix: import url * feat: add test for getUsersWhoseBirthdayIsMissing query * feat: integration test to ask again birthday if it is null * chore: use sendCronEvent instead of fetch * feat: add team_id and fix unit askBirthday tests * fix: shouldn't find any users unit test
- Loading branch information
1 parent
2e683ba
commit 1240aa0
Showing
11 changed files
with
333 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "users" ALTER COLUMN "birthday" DROP NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
{ | ||
"version": "5", | ||
"dialect": "pg", | ||
"id": "f4d596d1-e02b-4c39-98c3-5a48f49b8c65", | ||
"prevId": "3ba6727b-d01d-4de2-a788-d1cdaa365084", | ||
"tables": { | ||
"iceBreakerThreads": { | ||
"name": "iceBreakerThreads", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "serial", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"team_id": { | ||
"name": "team_id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"user_id": { | ||
"name": "user_id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"thread_id": { | ||
"name": "thread_id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"iceBreakerThreads_user_id_team_id_users_id_team_id_fk": { | ||
"name": "iceBreakerThreads_user_id_team_id_users_id_team_id_fk", | ||
"tableFrom": "iceBreakerThreads", | ||
"tableTo": "users", | ||
"columnsFrom": [ | ||
"user_id", | ||
"team_id" | ||
], | ||
"columnsTo": [ | ||
"id", | ||
"team_id" | ||
], | ||
"onDelete": "cascade", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"presentIdeas": { | ||
"name": "presentIdeas", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "serial", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"team_id": { | ||
"name": "team_id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"birthday_person": { | ||
"name": "birthday_person", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"user_id": { | ||
"name": "user_id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"present_idea": { | ||
"name": "present_idea", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"presentIdeas_user_id_team_id_users_id_team_id_fk": { | ||
"name": "presentIdeas_user_id_team_id_users_id_team_id_fk", | ||
"tableFrom": "presentIdeas", | ||
"tableTo": "users", | ||
"columnsFrom": [ | ||
"user_id", | ||
"team_id" | ||
], | ||
"columnsTo": [ | ||
"id", | ||
"team_id" | ||
], | ||
"onDelete": "cascade", | ||
"onUpdate": "no action" | ||
}, | ||
"presentIdeas_birthday_person_team_id_users_id_team_id_fk": { | ||
"name": "presentIdeas_birthday_person_team_id_users_id_team_id_fk", | ||
"tableFrom": "presentIdeas", | ||
"tableTo": "users", | ||
"columnsFrom": [ | ||
"birthday_person", | ||
"team_id" | ||
], | ||
"columnsTo": [ | ||
"id", | ||
"team_id" | ||
], | ||
"onDelete": "cascade", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"testItems": { | ||
"name": "testItems", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "varchar", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"payload": { | ||
"name": "payload", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"users": { | ||
"name": "users", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"team_id": { | ||
"name": "team_id", | ||
"type": "varchar", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"birthday": { | ||
"name": "birthday", | ||
"type": "date", | ||
"primaryKey": false, | ||
"notNull": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": { | ||
"users_id_team_id": { | ||
"name": "users_id_team_id", | ||
"columns": [ | ||
"id", | ||
"team_id" | ||
] | ||
} | ||
}, | ||
"uniqueConstraints": {} | ||
} | ||
}, | ||
"enums": {}, | ||
"schemas": {}, | ||
"_meta": { | ||
"schemas": {}, | ||
"tables": {}, | ||
"columns": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.