Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Update Prisma Schema for Financial Analysis and Internal Invoicing #65

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

Codehagen
Copy link
Owner

PR Title: Update Prisma Schema for Financial Analysis and Internal Invoicing

Description:

This PR introduces three main changes to our Prisma schema:

  1. New InternalInvoice model:

    • Allows tracking of invoices generated by our software for workspaces.
    • Includes fields for amount, due date, status, and description.
  2. New FinancialAnalysisBuildingIncome model:

    • Captures detailed income data for building financial analysis.
    • Supports multiple income units per building analysis.
  3. ID Field Updates:

    • Changed FinancialAnalysisBuilding and FinancialAnalysisProperty models to use cuid() for ID generation, aligning with our existing schema conventions.

These changes enhance our financial analysis capabilities and introduce a system for managing internal invoices. The new models use optional fields where appropriate for flexibility.

Note: Existing code interacting with FinancialAnalysisBuilding and FinancialAnalysisProperty may need updates due to the ID type change.

@Codehagen Codehagen added this to the Alpha 0.1 milestone Aug 15, 2024
@Codehagen Codehagen requested a review from vsoraas August 15, 2024 05:46
@Codehagen Codehagen linked an issue Aug 15, 2024 that may be closed by this pull request
Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
propdock ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 5:31pm

Copy link
Collaborator

@vsoraas vsoraas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a FinancialAnalysisBuildingCost as well

@Codehagen Codehagen merged commit 63b38d5 into main Aug 15, 2024
3 checks passed
@Codehagen Codehagen deleted the 59-feature-schema-update-for-alpha-02 branch August 15, 2024 17:32
Motormary added a commit that referenced this pull request Aug 16, 2024
commit 474f417
Author: meglerhagen <[email protected]>
Date:   Fri Aug 16 08:01:39 2024 +0200

    update nextjs version ⚡

commit 01dbd90
Merge: 63b38d5 413ee9f
Author: Christer <[email protected]>
Date:   Fri Aug 16 08:00:08 2024 +0200

    Merge pull request #57 from Codehagen/53-sensitivy-analysis

    Sensitivy analysis

commit 413ee9f
Author: meglerhagen <[email protected]>
Date:   Fri Aug 16 07:57:14 2024 +0200

    done with mvp

commit 0b16b3d
Author: meglerhagen <[email protected]>
Date:   Fri Aug 16 07:16:39 2024 +0200

    mvp v2 working

commit eeacc40
Author: meglerhagen <[email protected]>
Date:   Fri Aug 16 06:58:36 2024 +0200

    delete cell ok

commit 955286a
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 22:26:56 2024 +0200

    working total

commit 4dafbe9
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 22:10:14 2024 +0200

    good formating on table

commit 5a08f23
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 21:37:50 2024 +0200

    first mvp done

commit 6d2d047
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 21:22:42 2024 +0200

    working popover dropdown

commit 4d2d0f7
Merge: e880e17 63b38d5
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 19:34:56 2024 +0200

    merge from main

commit 63b38d5
Merge: 0a8ab72 4acdb3a
Author: Christer <[email protected]>
Date:   Thu Aug 15 19:32:09 2024 +0200

    Merge pull request #65 from Codehagen/59-feature-schema-update-for-alpha-02

    Feature: Update Prisma Schema for Financial Analysis and Internal Invoicing

commit 4acdb3a
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 19:29:12 2024 +0200

    update with cost and income

commit 0a8ab72
Merge: b5bc3ec 6d9784d
Author: Christer <[email protected]>
Date:   Thu Aug 15 08:01:33 2024 +0200

    Merge pull request #66 from Codehagen/58-bug-settings-choice-on-the-user-menu-leads-to-wrong-url

    update bug 🐛

commit 6d9784d
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 08:00:24 2024 +0200

    update bug 🐛

commit 01e5077
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 07:44:58 2024 +0200

    update v1

commit b5bc3ec
Author: meglerhagen <[email protected]>
Date:   Thu Aug 15 07:26:28 2024 +0200

    update on actions and workflow

commit 9a538af
Author: meglerhagen <[email protected]>
Date:   Wed Aug 14 22:32:42 2024 +0200

    update payload to BE Fiken

commit a069779
Merge: 168a2e8 630656a
Author: Christer <[email protected]>
Date:   Wed Aug 14 22:17:40 2024 +0200

    Merge pull request #56 from Codehagen/feature/fiken-onboarding

    Integration: Fiken - onboarding

commit 630656a
Author: meglerhagen <[email protected]>
Date:   Wed Aug 14 22:07:51 2024 +0200

    callback and api route for inti done

commit e880e17
Author: meglerhagen <[email protected]>
Date:   Wed Aug 14 21:05:12 2024 +0200

     update

commit 2aa86ee
Merge: 2883be8 168a2e8
Author: vsoraas <[email protected]>
Date:   Wed Aug 14 20:20:20 2024 +0200

    Merge branch 'main' into feature/fiken-onboarding

commit 2883be8
Author: vsoraas <[email protected]>
Date:   Wed Aug 14 20:10:31 2024 +0200

    Fixed routing for Fiken endpoints

commit a13b39f
Author: vsoraas <[email protected]>
Date:   Wed Aug 14 20:10:01 2024 +0200

    Expanded DB utility functions for handling API keys to also include upserting to auto-handle cases where a user re-auths an integration

commit 3a8fc5e
Author: vsoraas <[email protected]>
Date:   Wed Aug 14 20:08:54 2024 +0200

    Cleaned up logic for Fiken requests

commit 4966d94
Author: vsoraas <[email protected]>
Date:   Wed Aug 14 20:07:09 2024 +0200

    Fjottkuk clean-up

commit 58baa37
Author: meglerhagen <[email protected]>
Date:   Wed Aug 14 14:38:50 2024 +0200

    not sticky yet infocard

commit 5ed1636
Author: meglerhagen <[email protected]>
Date:   Wed Aug 14 14:21:44 2024 +0200

    Infocard added

commit f29f89e
Author: meglerhagen <[email protected]>
Date:   Tue Aug 13 21:39:39 2024 +0200

    added table

commit 168a2e8
Merge: c9dd54d 3677102
Author: Christer <[email protected]>
Date:   Tue Aug 13 21:12:35 2024 +0200

    Merge pull request #55 from Codehagen/54-feature-tabs-on-verdsettelse

    Navbar on analysis

commit 3677102
Author: meglerhagen <[email protected]>
Date:   Tue Aug 13 21:08:02 2024 +0200

    done with feature

commit c9dd54d
Author: Christer <[email protected]>
Date:   Mon Aug 12 22:13:27 2024 +0200

    open-source 🏎️

commit f9f378c
Author: meglerhagen <[email protected]>
Date:   Mon Aug 12 21:55:07 2024 +0200

    open-source 🏎️

commit 3f0d8fb
Author: meglerhagen <[email protected]>
Date:   Mon Aug 12 21:31:34 2024 +0200

    new features and update

commit 2fd013f
Author: meglerhagen <[email protected]>
Date:   Sun Aug 11 13:52:00 2024 +0200

    update integrasjon

commit 77de91a
Merge: 270feb6 dde7b8d
Author: Christer <[email protected]>
Date:   Sat Aug 10 13:43:16 2024 +0200

    Merge pull request #52 from Codehagen/integrations-blog

    Integrations blog

commit dde7b8d
Merge: b67f2c4 270feb6
Author: meglerhagen <[email protected]>
Date:   Sat Aug 10 13:40:02 2024 +0200

    Merge branch 'main' into integrations-blog

commit b67f2c4
Author: meglerhagen <[email protected]>
Date:   Sat Aug 10 13:39:35 2024 +0200

    done before merge

commit 270feb6
Author: meglerhagen <[email protected]>
Date:   Fri Aug 9 12:51:52 2024 +0200

    minior edit on conditional on tenants

commit ba34b20
Merge: 34654d9 654d292
Author: Christer <[email protected]>
Date:   Fri Aug 9 12:16:05 2024 +0200

    Merge pull request #50 from Codehagen/45-feature-signicat

    45 feature signicat

commit 654d292
Author: meglerhagen <[email protected]>
Date:   Fri Aug 9 12:13:08 2024 +0200

    update schema

commit 8096801
Merge: f3e7379 34654d9
Author: meglerhagen <[email protected]>
Date:   Fri Aug 9 12:08:24 2024 +0200

    update shcema before main

commit f3e7379
Author: meglerhagen <[email protected]>
Date:   Fri Aug 9 10:16:55 2024 +0200

    removed content

commit 524ab3b
Merge: 6e21e9e 2c6d41b
Author: meglerhagen <[email protected]>
Date:   Fri Aug 9 10:14:26 2024 +0200

    Merge branch 'main' into 45-feature-signicat

commit 6e21e9e
Author: meglerhagen <[email protected]>
Date:   Fri Aug 9 10:11:41 2024 +0200

    working

commit 44319ec
Author: meglerhagen <[email protected]>
Date:   Thu Aug 8 22:45:42 2024 +0200

    working pades on pdf - next is component

commit d1cd5da
Author: meglerhagen <[email protected]>
Date:   Thu Aug 8 21:52:06 2024 +0200

    working, but not with the right signing page

commit 26a4814
Author: meglerhagen <[email protected]>
Date:   Thu Aug 8 21:12:31 2024 +0200

    made function, dont know if its woring

commit a22e347
Author: meglerhagen <[email protected]>
Date:   Thu Aug 8 13:04:56 2024 +0200

    working stepper

commit 2f76e90
Author: meglerhagen <[email protected]>
Date:   Thu Aug 8 12:33:00 2024 +0200

    init page.tsx

commit c46a2fe
Author: vsoraas <[email protected]>
Date:   Wed Aug 7 20:12:52 2024 +0200

    Fiken onboarding WIP

commit 3584bee
Merge: 2c6d41b 8afce53
Author: vsoraas <[email protected]>
Date:   Wed Aug 7 19:20:15 2024 +0200

    Merge remote-tracking branch 'origin/get-customers-fiken' into feature/fiken-onboarding

commit 802207a
Merge: 427c967 d32497e
Author: meglerhagen <[email protected]>
Date:   Wed Aug 7 08:19:40 2024 +0200

    Merge branch 'main' into 45-feature-signicat

commit c1661a0
Author: meglerhagen <[email protected]>
Date:   Tue Aug 6 14:58:32 2024 +0200

    working

commit 9e6d177
Author: meglerhagen <[email protected]>
Date:   Tue Aug 6 14:12:01 2024 +0200

    working intregrationpage

commit 427c967
Author: meglerhagen <[email protected]>
Date:   Fri Aug 2 11:24:15 2024 +0200

    update schema - maybe fuckup

commit 9c819b2
Author: meglerhagen <[email protected]>
Date:   Fri Aug 2 09:03:27 2024 +0200

    refractor code to lib

commit 564edaf
Author: meglerhagen <[email protected]>
Date:   Fri Aug 2 08:46:22 2024 +0200

    working download with Bankid Sign

commit 6dd7b22
Author: meglerhagen <[email protected]>
Date:   Fri Aug 2 08:25:02 2024 +0200

    working handleducmentsigned2 and save - Missing the pdf

commit b0386f6
Author: meglerhagen <[email protected]>
Date:   Thu Aug 1 21:49:30 2024 +0200

    working without expire

commit 32aabbb
Author: meglerhagen <[email protected]>
Date:   Thu Aug 1 21:24:55 2024 +0200

    semiworking

commit 43c2cb1
Author: meglerhagen <[email protected]>
Date:   Thu Aug 1 14:47:50 2024 +0200

    working R2

commit f7d51c5
Author: meglerhagen <[email protected]>
Date:   Thu Aug 1 13:45:08 2024 +0200

    before shitshow

commit aa75e5d
Author: meglerhagen <[email protected]>
Date:   Thu Aug 1 12:49:15 2024 +0200

    update schema

commit 75a41af
Author: meglerhagen <[email protected]>
Date:   Wed Jul 31 19:23:19 2024 +0200

    working all

commit f4b954e
Author: meglerhagen <[email protected]>
Date:   Wed Jul 31 15:16:15 2024 +0200

    working notification

commit bca9be2
Author: meglerhagen <[email protected]>
Date:   Wed Jul 31 14:50:40 2024 +0200

    working postman own data

commit 5f8535b
Author: meglerhagen <[email protected]>
Date:   Wed Jul 31 14:06:36 2024 +0200

    fixed typo

commit 1fd948f
Author: meglerhagen <[email protected]>
Date:   Wed Jul 31 13:57:21 2024 +0200

    before SDK

commit 7b8ece5
Author: meglerhagen <[email protected]>
Date:   Wed Jul 31 09:35:55 2024 +0200

    working auth

commit 8afce53
Author: meglerhagen <[email protected]>
Date:   Sat Jul 20 12:39:38 2024 +0200

    Working Fiken Endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Feature: Schema Update for Alpha 0.2
2 participants