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

Version Path
fixture_fox-0.2.12 examples/link.sql
fixture_fox-0.2.11 examples/link.sql
fixture_fox-0.2.10 examples/link.sql
fixture_fox-0.2.9 examples/link.sql
fixture_fox-0.2.8 examples/link.sql
fixture_fox-0.2.7 examples/link.sql
fixture_fox-0.2.6 examples/link.sql
fixture_fox-0.2.5 examples/link.sql
fixture_fox-0.2.4 examples/link.sql
fixture_fox-0.2.3 examples/link.sql
fixture_fox-0.2.2 examples/link.sql
fixture_fox-0.2.1 examples/link.sql
fixture_fox-0.2.0 examples/link.sql
fixture_fox-0.1.3 examples/link.sql
fixture_fox-0.1.2 examples/link.sql
fixture_fox-0.1.1 examples/link.sql