uas-web-22412001/api/sql/inv.sql
2025-07-15 14:16:20 +07:00

14 lines
328 B
SQL

CREATE DATABASE IF NOT EXISTS inventory;
CREATE TABLE items (
id int(11) not null auto_increment primary key,
name varchar(36) not null,
price int(10) not null,
qty int(11) not null
);
INSERT INTO items VALUES
(DEFAULT, 'Kopi', 200, 10),
(DEFAULT, 'Teh', 200, 20),
(DEFAULT, 'Susu', 300, 30);