Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(database): remove the character limits from the database schema #74

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions scripts/db_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
-- CREATE DATABASE IF NOT EXISTS tgbd-dev;

CREATE TABLE IF NOT EXISTS events (
_id VARCHAR(36) PRIMARY KEY,
name VARCHAR(30),
source VARCHAR(30),
_id VARCHAR PRIMARY KEY,
name VARCHAR,
source VARCHAR,
read_only BOOLEAN,
username VARCHAR(12),
accesskey_id VARCHAR(30),
account_id VARCHAR(15),
arn VARCHAR(35),
aws_region VARCHAR(10),
cipher_suite VARCHAR(30),
client_provided_host_header VARCHAR(35),
category VARCHAR(20),
username VARCHAR,
accesskey_id VARCHAR,
account_id VARCHAR,
arn VARCHAR,
aws_region VARCHAR,
cipher_suite VARCHAR,
client_provided_host_header VARCHAR,
category VARCHAR,
time TIMESTAMPTZ,
type VARCHAR(20),
version VARCHAR(8),
type VARCHAR,
version VARCHAR,
is_management BOOLEAN,
principal_id VARCHAR(25),
recipient_account_id VARCHAR(15),
request_id VARCHAR(36),
source_ip VARCHAR(15),
tls_version VARCHAR(10),
user_identity_type VARCHAR(12),
user_agent VARCHAR(120)
principal_id VARCHAR,
recipient_account_id VARCHAR,
request_id VARCHAR,
source_ip VARCHAR,
tls_version VARCHAR,
user_identity_type VARCHAR,
user_agent VARCHAR
);

CREATE TABLE IF NOT EXISTS ips (
Expand Down
Loading