(userId: string, id: string)
| 143 | } |
| 144 | |
| 145 | static async delete(userId: string, id: string) { |
| 146 | await db.query( |
| 147 | sql`DELETE FROM "bewcloud_budgets" WHERE "id" = $1 AND "user_id" = $2`, |
| 148 | [ |
| 149 | id, |
| 150 | userId, |
| 151 | ], |
| 152 | ); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | export class ExpenseModel { |