aboutsummaryrefslogtreecommitdiff
path: root/dbinit.sql
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-03-24 01:41:55 +0100
committerarf20 <aruizfernandez05@gmail.com>2024-03-24 01:41:55 +0100
commit8a1f665f1ff9c5084b9c6372d21b49e8a36713b3 (patch)
treec21fa06a72ee9fb7147e4fb16d02a77b6f29000d /dbinit.sql
parent0c86e53fb5d51ae1c853226ebc6673dbca17deca (diff)
downloadarfnet2-cstims-8a1f665f1ff9c5084b9c6372d21b49e8a36713b3.tar.gz
arfnet2-cstims-8a1f665f1ff9c5084b9c6372d21b49e8a36713b3.zip
Invoice management
Diffstat (limited to 'dbinit.sql')
-rw-r--r--dbinit.sql5
1 files changed, 3 insertions, 2 deletions
diff --git a/dbinit.sql b/dbinit.sql
index a75b146..f3476d9 100644
--- a/dbinit.sql
+++ b/dbinit.sql
@@ -47,10 +47,11 @@ CREATE TABLE `arfnet2`.`tickets` (
CREATE TABLE `arfnet2`.`invoices` (
`id` INT NOT NULL AUTO_INCREMENT ,
- `order` INT NOT NULL ,
+ `client` INT NOT NULL ,
`desc` VARCHAR(255) NOT NULL ,
- `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
+ `amount` DECIMAL(10, 4) NOT NULL ,
`pdf` MEDIUMBLOB NOT NULL ,
+ `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
`status` ENUM('paid','unpaid') NOT NULL DEFAULT 'unpaid' ,
PRIMARY KEY (`id`)
);