demo.db.user.ben.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databene-benerator Show documentation
Show all versions of databene-benerator Show documentation
benerator is a framework for creating realistic and valid high-volume test data, used for
testing (unit/integration/load) and showcase setup.
Metadata constraints are imported from systems and/or configuration files. Data can imported from
and exported to files and systems, anonymized or generated from scratch. Domain packages provide
reusable generators for creating domain-specific data as names and addresses internationalizable
in language and region. It is strongly customizable with plugins and configuration options.
The newest version!
DROP TABLE db_dummy;
DROP TABLE db_user;
DROP TABLE db_role;
CREATE TABLE db_role (
id int NOT NULL,
name varchar(16) NOT NULL,
mx int,
PRIMARY KEY (id)
);
CREATE TABLE db_user (
id int NOT NULL,
name varchar(30) NOT NULL,
role_fk int NOT NULL,
PRIMARY KEY (id),
CONSTRAINT user_role_fk FOREIGN KEY (role_fk) REFERENCES db_role (id)
);
CREATE INDEX user_role_fki on db_user (role_fk);
CREATE TABLE db_dummy (
id int NOT NULL,
PRIMARY KEY (id)
);
insert into db_role (id, name, mx) values (1, 'a', 3);
insert into db_role (id, name, mx) values (2, 'b', 5);
insert into db_role (id, name, mx) values (3, 'c', 7);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy