Enterprise testing
SQL migration test fixture
Create tenant-scoped table in fresh test database. Source-reviewed example or artifact, NOT RUN.
Formal Syntax & Structure
java syntaxjava
CREATE TABLE inventory (...)Working Example
Example Snippetjava
CREATE TABLE inventory (tenant varchar(30) NOT NULL, sku varchar(30) NOT NULL, quantity integer NOT NULL CHECK (quantity >= 0), PRIMARY KEY (tenant,sku));