feat: add schema & initial records
This commit is contained in:
parent
29a8e834b9
commit
5b36c46a2c
21
src/main/resources/data.sql
Normal file
21
src/main/resources/data.sql
Normal file
@ -0,0 +1,21 @@
|
||||
INSERT INTO demo(name, age) VALUES
|
||||
('John Doe', 30),
|
||||
('Jane Smith', 25),
|
||||
('Alice Johnson', 28),
|
||||
('Bob Brown', 35),
|
||||
('Charlie White', 22),
|
||||
('Diana Green', 40),
|
||||
('Ethan Blue', 33),
|
||||
('Fiona Black', 29),
|
||||
('George Grey', 31),
|
||||
('Hannah Yellow', 27),
|
||||
('Ian Purple', 38),
|
||||
('Julia Orange', 26),
|
||||
('Kevin Pink', 34),
|
||||
('Laura Cyan', 21),
|
||||
('Mike Magenta', 37),
|
||||
('Nina Teal', 24),
|
||||
('Oscar Maroon', 32),
|
||||
('Paula Silver', 39),
|
||||
('Quentin Gold', 23),
|
||||
('Rachel Bronze', 36);
|
||||
9
src/main/resources/schema.sql
Normal file
9
src/main/resources/schema.sql
Normal file
@ -0,0 +1,9 @@
|
||||
DROP TABLE IF EXISTS demo;
|
||||
|
||||
CREATE TABLE demo
|
||||
(
|
||||
id BIGINT NOT NULL AUTO_INCREMENT,
|
||||
name VARCHAR(50) NOT NULL,
|
||||
age INTEGER NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
Loading…
x
Reference in New Issue
Block a user