Sha256: 0f99a1d47719011bade65dd18bf75308dbaa20e774059dc0981487caf9efc539
Contents?: true
Size: 699 Bytes
Versions: 16
Compression:
Stored size: 699 Bytes
Contents
\connect postgres drop database if exists fox; create database fox; \connect fox create table users ( id integer generated by default as identity primary key, name varchar not null ); create table pictures ( id integer generated by default as identity primary key, user_id integer not null references users(id) unique, file text not null ); create table roles ( id integer generated by default as identity primary key, parent_role_id integer references roles(id), name varchar not null ); create table user_roles ( id integer generated by default as identity primary key, user_id integer not null references users(id), role_id integer not null references roles(id) );
Version data entries
16 entries across 16 versions & 1 rubygems