Sha256: db1068a7f10e023b7a8ed86f2375d5737868d72d6ccf3995a48a12fb3ff6c989
Contents?: true
Size: 765 Bytes
Versions: 32
Compression:
Stored size: 765 Bytes
Contents
\connect postgres drop database if exists fox; create database fox; \connect fox create schema user_schema; create schema role_schema; create table role_schema.roles ( id integer generated by default as identity primary key, name text not null ); create table user_schema.users ( id integer generated by default as identity primary key, name text not null ); create table public.user_roles ( id integer generated by default as identity primary key, role_id integer not null references role_schema.roles(id), user_id integer not null references user_schema.users(id) ); create table public.posts ( id integer generated by default as identity primary key, user_id integer not null references user_schema.users(id), title text not null );
Version data entries
32 entries across 16 versions & 1 rubygems