All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.sudoor-server-lib.1.0.22.source-code.schema.sql Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
---
-- #%L
-- sudoor-server-lib
-- %%
-- Copyright (C) 2013 - 2015 Shark Xu
-- %%
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
-- 
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
-- 
-- You should have received a copy of the GNU General Public
-- License along with this program.  If not, see
-- .
-- #L%
---
create table users(
    username varchar_ignorecase(50) not null primary key,
    password varchar_ignorecase(80) not null,
    enabled boolean not null
);

create table authorities (
    username varchar_ignorecase(50) not null,
    authority varchar_ignorecase(50) not null,
    constraint fk_authorities_users foreign key(username) references users(username)
);
create unique index ix_auth_username on authorities (username,authority);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy