mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
changes to support the agreement between sqlite and postgres (#46)
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
-- accounts
|
||||
--
|
||||
create table accounts (
|
||||
id integer primary key,
|
||||
id serial primary key,
|
||||
email varchar(1024) not null unique,
|
||||
password char(128) not null,
|
||||
token varchar(32) not null unique,
|
||||
@ -20,7 +20,7 @@ create table accounts (
|
||||
-- account_requests
|
||||
--
|
||||
create table account_requests (
|
||||
id integer primary key,
|
||||
id serial primary key,
|
||||
token varchar(32) not null unique,
|
||||
email varchar(1024) not null unique,
|
||||
source_address varchar(64) not null,
|
||||
@ -32,7 +32,7 @@ create table account_requests (
|
||||
-- environments
|
||||
--
|
||||
create table environments (
|
||||
id integer primary key,
|
||||
id serial primary key,
|
||||
account_id integer constraint fk_accounts_identities references accounts on delete cascade,
|
||||
description text,
|
||||
host varchar(256),
|
||||
@ -48,7 +48,7 @@ create table environments (
|
||||
-- services
|
||||
--
|
||||
create table services (
|
||||
id integer primary key,
|
||||
id serial primary key,
|
||||
environment_id integer constraint fk_environments_services references environments on delete cascade,
|
||||
z_id varchar(32) not null unique,
|
||||
name varchar(32) not null unique,
|
||||
|
Reference in New Issue
Block a user