GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — navaja-sql/sql/machete-employer.sql at master · chaim1221/navaja-sql

Expand file tree

/

machete-employer.sql

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
44 lines (39 loc) · 1.34 KB
/

machete-employer.sql

Copy path

File metadata and controls

44 lines (39 loc) · 1.34 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CREATE SCHEMA IF NOT EXISTS employer;
CREATE TABLE IF NOT EXISTS employer.profile(
"id" SERIAL PRIMARY KEY
, "returnCustomer" boolean NOT NULL
, "receiveUpdates" boolean NOT NULL
, "name" varchar(50) NOT NULL
, "email" varchar(254) NOT NULL UNIQUE
, "password" varchar(250) NOT NULL
, "active" boolean NOT NULL
);
CREATE TABLE IF NOT EXISTS employer.business(
"id" SERIAL PRIMARY KEY
, "profileId" integer NOT NULL REFERENCES employer.profile
, "name" varchar(50) NOT NULL
, "federalTaxId" varchar(50) NOT NULL
, "active" boolean NOT NULL
);
-- an employer must have an address record to hire a worker
CREATE TABLE IF NOT EXISTS employer.address(
"id" SERIAL PRIMARY KEY
, "profileId" integer NOT NULL REFERENCES employer.profile
, "businessId" integer REFERENCES employer.business -- not null = business address
, "address1" varchar(50) NOT NULL
, "address2" varchar(50)
, "city" varchar(50) NOT NULL
, "state" varchar(2) NOT NULL
, "phonePrimary" varchar(12) NOT NULL
, "phoneSecondary" varchar(12)
, "active" boolean NOT NULL
);
CREATE TABLE IF NOT EXISTS employer.review(
"id" SERIAL PRIMARY KEY
, "profileId" integer NOT NULL REFERENCES employer.profile
, "rating" smallint NOT NULL
, "culture" varchar(5) NOT NULL
, "title" varchar(50)
, "message" varchar(200)
, "active" boolean NOT NULL
);
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.