itse-presentation/.run/Setup tables.run.xml

19 lines
803 B
XML

<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Setup tables" type="DatabaseScript">
<data-source id="1c5ced7c-10f3-4662-9fcf-f6601b0cfc94" />
<script-text>CREATE TABLE users (
username VARCHAR(50) NOT NULL PRIMARY KEY,
password VARCHAR(500) NOT NULL,
enabled BOOLEAN NOT NULL
);
CREATE TABLE authorities (
username VARCHAR(50) NOT NULL,
authority VARCHAR(50) NOT NULL,
CONSTRAINT fk_authorities_users FOREIGN KEY (username) REFERENCES users(username)
);
CREATE UNIQUE INDEX ix_auth_username ON authorities (username, authority);</script-text>
<method v="2" />
</configuration>
</component>