Sha256: e9b8d125326d1cb6e80b635032cf4297e0d9394d1e8269b3fb38dcb3d064e496
Contents?: true
Size: 756 Bytes
Versions: 16
Compression:
Stored size: 756 Bytes
Contents
\connect postgres drop database if exists fox; create database fox; \connect fox create table user_groups ( id integer not null generated by default as identity primary key, name varchar not null unique ); create table user_roles ( id integer not null generated by default as identity primary key, name varchar not null unique ); create table users ( id integer not null generated by default as identity primary key, username varchar not null, user_role_kind varchar not null references user_roles(name), user_group varchar not null references user_groups(name) ); create table emails ( id integer not null generated by default as identity primary key, user_id integer not null references users(id), email varchar not null );
Version data entries
16 entries across 16 versions & 1 rubygems