here is a sample sql CREATE TABLE `resellers` ( `id` string PRIMARY KEY, `email` string NOT NULL

here is a sample sql
CREATE TABLE resellers (
id
string PRIMARY KEY,
email
string NOT NULL,
name
string NOT NULL,
created datetime
);

CREATE TABLE agencies (
id
string PRIMARY KEY,
reseller_id string NOT NULL,
name
string NOT NULL,
location string,
created datetime
FOREIGN KEY(reseller_id) REFERENCES resellers(
id
),
);
Was this page helpful?