-- Users table
CREATE TABLE users (
id UUID PRIMARY KEY,
email VARCHAR(255) NOT NULL,
tenant_id UUID NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
-- Example data
INSERT INTO users (id, email, password, tenant_id) VALUES
('user-1', 'john@example.com', 'hashed_password_1', 'tenant-org-a'),
('user-2', 'john@example.com', 'hashed_password_2', 'tenant-org-b');
-- Users table
CREATE TABLE users (
id UUID PRIMARY KEY,
email VARCHAR(255) NOT NULL,
tenant_id UUID NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
-- Example data
INSERT INTO users (id, email, password, tenant_id) VALUES
('user-1', 'john@example.com', 'hashed_password_1', 'tenant-org-a'),
('user-2', 'john@example.com', 'hashed_password_2', 'tenant-org-b');