Skip to content

Commit

Permalink
#27 change status column in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
akselsf committed Sep 27, 2024
1 parent 70baef6 commit 200206e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ CREATE TABLE receiptreview
(
id INT NOT NULL PRIMARY KEY IDENTITY (1,1),
receipt_id INT NOT NULL references receipt (id),
status VARCHAR(55) NOT NULL,
status VARCHAR(20) NOT NULL CHECK (status IN('APPROVED', 'DENIED')),
comment VARCHAR(500) NOT NULL,
createdat DATETIME NOT NULL,
onlineuser_id INT NOT NULL references onlineuser (id),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.example.autobank.repository.receipt


import com.example.autobank.data.receipt.ReceiptInfo
import com.example.autobank.data.receipt.ReceiptReview
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
Expand Down

0 comments on commit 200206e

Please sign in to comment.