create-cedro-app 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/inventory-management-system/vsbms (1).sql +182 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/README.md +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/eslint.config.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/index.html +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/package.json +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/public/favicon.svg +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/public/icons.svg +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/App.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/assets/hero.png +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/assets/react.svg +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/assets/vite.svg +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/AppRoutes.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Customer.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Dashboard.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Invoice.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Login.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/PageNotFound.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Register.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Report.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/components/Service.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/index.css +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/src/main.jsx +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/client/vite.config.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/.env +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/Functions/Customer.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/Functions/Invoice.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/Functions/Service.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/Functions/dashboard.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/Functions/report.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/Functions/users.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/db.js +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/package.json +0 -0
- /package/templates/{invoice-service-management-system → inventory-management-system}/server/server.js +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
-- phpMyAdmin SQL Dump
|
|
2
|
+
-- version 5.2.1
|
|
3
|
+
-- https://www.phpmyadmin.net/
|
|
4
|
+
--
|
|
5
|
+
-- Host: 127.0.0.1
|
|
6
|
+
-- Generation Time: May 26, 2026 at 12:44 PM
|
|
7
|
+
-- Server version: 10.4.32-MariaDB
|
|
8
|
+
-- PHP Version: 8.0.30
|
|
9
|
+
|
|
10
|
+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
11
|
+
START TRANSACTION;
|
|
12
|
+
SET time_zone = "+00:00";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
16
|
+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
17
|
+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
18
|
+
/*!40101 SET NAMES utf8mb4 */;
|
|
19
|
+
|
|
20
|
+
--
|
|
21
|
+
-- Database: `vsbms`
|
|
22
|
+
--
|
|
23
|
+
|
|
24
|
+
-- --------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
--
|
|
27
|
+
-- Table structure for table `customer`
|
|
28
|
+
--
|
|
29
|
+
|
|
30
|
+
CREATE TABLE `customer` (
|
|
31
|
+
`CustomerId` int(11) NOT NULL,
|
|
32
|
+
`FirstName` varchar(255) NOT NULL,
|
|
33
|
+
`LastName` varchar(255) NOT NULL,
|
|
34
|
+
`Address` varchar(255) NOT NULL,
|
|
35
|
+
`Telephone` varchar(255) NOT NULL,
|
|
36
|
+
`VehiclePlateNumber` varchar(255) NOT NULL,
|
|
37
|
+
`VehicleType` varchar(255) NOT NULL,
|
|
38
|
+
`ServiceDate` date NOT NULL
|
|
39
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
40
|
+
|
|
41
|
+
--
|
|
42
|
+
-- Dumping data for table `customer`
|
|
43
|
+
--
|
|
44
|
+
|
|
45
|
+
INSERT INTO `customer` (`CustomerId`, `FirstName`, `LastName`, `Address`, `Telephone`, `VehiclePlateNumber`, `VehicleType`, `ServiceDate`) VALUES
|
|
46
|
+
(1, 'IRERE', 'Rebecca', '24J3+R22', '078078635', 'dn002', 'tack', '2026-05-26');
|
|
47
|
+
|
|
48
|
+
-- --------------------------------------------------------
|
|
49
|
+
|
|
50
|
+
--
|
|
51
|
+
-- Table structure for table `invoice`
|
|
52
|
+
--
|
|
53
|
+
|
|
54
|
+
CREATE TABLE `invoice` (
|
|
55
|
+
`InvoiceId` int(11) NOT NULL,
|
|
56
|
+
`TotalCost` varchar(255) NOT NULL,
|
|
57
|
+
`PaidAmount` varchar(255) NOT NULL,
|
|
58
|
+
`Balance` varchar(255) NOT NULL,
|
|
59
|
+
`PaymentMonth` varchar(255) NOT NULL,
|
|
60
|
+
`CustomerId` int(11) NOT NULL,
|
|
61
|
+
`ServiceCode` varchar(255) NOT NULL
|
|
62
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
63
|
+
|
|
64
|
+
--
|
|
65
|
+
-- Dumping data for table `invoice`
|
|
66
|
+
--
|
|
67
|
+
|
|
68
|
+
INSERT INTO `invoice` (`InvoiceId`, `TotalCost`, `PaidAmount`, `Balance`, `PaymentMonth`, `CustomerId`, `ServiceCode`) VALUES
|
|
69
|
+
(1, '172727', '1223', '111111', '0393', 1, 'TIR');
|
|
70
|
+
|
|
71
|
+
-- --------------------------------------------------------
|
|
72
|
+
|
|
73
|
+
--
|
|
74
|
+
-- Table structure for table `service`
|
|
75
|
+
--
|
|
76
|
+
|
|
77
|
+
CREATE TABLE `service` (
|
|
78
|
+
`ServiceCode` varchar(255) NOT NULL,
|
|
79
|
+
`ServiceName` varchar(255) NOT NULL,
|
|
80
|
+
`ServiceCost` varchar(255) NOT NULL,
|
|
81
|
+
`TotalDeduction` varchar(255) NOT NULL
|
|
82
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
83
|
+
|
|
84
|
+
--
|
|
85
|
+
-- Dumping data for table `service`
|
|
86
|
+
--
|
|
87
|
+
|
|
88
|
+
INSERT INTO `service` (`ServiceCode`, `ServiceName`, `ServiceCost`, `TotalDeduction`) VALUES
|
|
89
|
+
('ENG', 'Engine Repair', '500, 000 frw', '50, 000 frw'),
|
|
90
|
+
('OIL', 'Oil Change', '50 , 000 frw', '5 , 000 frw'),
|
|
91
|
+
('TIR', 'Tire Replacement', '300,000 frw', '30 ,000 frw'),
|
|
92
|
+
('WSH', 'Car Washing', '20,000 frw', '2,000 frw');
|
|
93
|
+
|
|
94
|
+
-- --------------------------------------------------------
|
|
95
|
+
|
|
96
|
+
--
|
|
97
|
+
-- Table structure for table `users`
|
|
98
|
+
--
|
|
99
|
+
|
|
100
|
+
CREATE TABLE `users` (
|
|
101
|
+
`id` int(11) NOT NULL,
|
|
102
|
+
`Name` varchar(255) NOT NULL,
|
|
103
|
+
`Email` varchar(255) NOT NULL,
|
|
104
|
+
`Password` text NOT NULL
|
|
105
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
106
|
+
|
|
107
|
+
--
|
|
108
|
+
-- Dumping data for table `users`
|
|
109
|
+
--
|
|
110
|
+
|
|
111
|
+
INSERT INTO `users` (`id`, `Name`, `Email`, `Password`) VALUES
|
|
112
|
+
(1, 'cedr', 'ced@gmail.com', '$2b$10$QkXO0bRZ9I.y4Y8jkCCMCuzaN84e7AIK2EL1jNG1DFZo.gMndk9ym'),
|
|
113
|
+
(2, 'cedrick', 'cedrick@gmail.com', '$2b$10$qG9oLZCTNNj/zjXrKozHruNdYgegeVn.RInBxN6wH..i6.TGffJmy');
|
|
114
|
+
|
|
115
|
+
--
|
|
116
|
+
-- Indexes for dumped tables
|
|
117
|
+
--
|
|
118
|
+
|
|
119
|
+
--
|
|
120
|
+
-- Indexes for table `customer`
|
|
121
|
+
--
|
|
122
|
+
ALTER TABLE `customer`
|
|
123
|
+
ADD PRIMARY KEY (`CustomerId`);
|
|
124
|
+
|
|
125
|
+
--
|
|
126
|
+
-- Indexes for table `invoice`
|
|
127
|
+
--
|
|
128
|
+
ALTER TABLE `invoice`
|
|
129
|
+
ADD PRIMARY KEY (`InvoiceId`),
|
|
130
|
+
ADD KEY `invoice_ibfk_1` (`CustomerId`),
|
|
131
|
+
ADD KEY `ServiceCode` (`ServiceCode`);
|
|
132
|
+
|
|
133
|
+
--
|
|
134
|
+
-- Indexes for table `service`
|
|
135
|
+
--
|
|
136
|
+
ALTER TABLE `service`
|
|
137
|
+
ADD PRIMARY KEY (`ServiceCode`);
|
|
138
|
+
|
|
139
|
+
--
|
|
140
|
+
-- Indexes for table `users`
|
|
141
|
+
--
|
|
142
|
+
ALTER TABLE `users`
|
|
143
|
+
ADD PRIMARY KEY (`id`),
|
|
144
|
+
ADD UNIQUE KEY `1` (`Email`);
|
|
145
|
+
|
|
146
|
+
--
|
|
147
|
+
-- AUTO_INCREMENT for dumped tables
|
|
148
|
+
--
|
|
149
|
+
|
|
150
|
+
--
|
|
151
|
+
-- AUTO_INCREMENT for table `customer`
|
|
152
|
+
--
|
|
153
|
+
ALTER TABLE `customer`
|
|
154
|
+
MODIFY `CustomerId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
155
|
+
|
|
156
|
+
--
|
|
157
|
+
-- AUTO_INCREMENT for table `invoice`
|
|
158
|
+
--
|
|
159
|
+
ALTER TABLE `invoice`
|
|
160
|
+
MODIFY `InvoiceId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
161
|
+
|
|
162
|
+
--
|
|
163
|
+
-- AUTO_INCREMENT for table `users`
|
|
164
|
+
--
|
|
165
|
+
ALTER TABLE `users`
|
|
166
|
+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
167
|
+
|
|
168
|
+
--
|
|
169
|
+
-- Constraints for dumped tables
|
|
170
|
+
--
|
|
171
|
+
|
|
172
|
+
--
|
|
173
|
+
-- Constraints for table `invoice`
|
|
174
|
+
--
|
|
175
|
+
ALTER TABLE `invoice`
|
|
176
|
+
ADD CONSTRAINT `invoice_ibfk_1` FOREIGN KEY (`CustomerId`) REFERENCES `customer` (`CustomerId`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
177
|
+
ADD CONSTRAINT `invoice_ibfk_2` FOREIGN KEY (`ServiceCode`) REFERENCES `service` (`ServiceCode`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
178
|
+
COMMIT;
|
|
179
|
+
|
|
180
|
+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
181
|
+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
182
|
+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/{invoice-service-management-system → inventory-management-system}/server/.env
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/{invoice-service-management-system → inventory-management-system}/server/db.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|