mybatis: MyBatis on Spring Boot 4.2.0 - annotation and XML mappers, result maps, dynamic SQL, PageHelper, @MybatisTest, seven real transcripts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3obqqePfZ9m2Jk5Ub
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
fc8bc933d5
commit
0e3ca9316f
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE category (
|
||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(50) NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE product (
|
||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(100) NOT NULL,
|
||||
price DECIMAL(10,2) NOT NULL,
|
||||
stock INT NOT NULL,
|
||||
active BOOLEAN NOT NULL,
|
||||
category_id BIGINT NOT NULL REFERENCES category(id)
|
||||
);
|
||||
Reference in New Issue
Block a user