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

Version Path
fixture_fox-0.2.12 examples/schema.sql
fixture_fox-0.2.12 examples/empty.sql
fixture_fox-0.2.11 examples/schema.sql
fixture_fox-0.2.11 examples/empty.sql
fixture_fox-0.2.10 examples/empty.sql
fixture_fox-0.2.10 examples/schema.sql
fixture_fox-0.2.9 examples/schema.sql
fixture_fox-0.2.9 examples/empty.sql
fixture_fox-0.2.8 examples/schema.sql
fixture_fox-0.2.8 examples/empty.sql
fixture_fox-0.2.7 examples/schema.sql
fixture_fox-0.2.7 examples/empty.sql
fixture_fox-0.2.6 examples/schema.sql
fixture_fox-0.2.6 examples/empty.sql
fixture_fox-0.2.5 examples/empty.sql
fixture_fox-0.2.5 examples/schema.sql
fixture_fox-0.2.4 examples/schema.sql
fixture_fox-0.2.4 examples/empty.sql
fixture_fox-0.2.3 examples/empty.sql
fixture_fox-0.2.3 examples/schema.sql