Skip to content

Commit

Permalink
fix(database): remove the character limits from the database schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanprior committed Oct 29, 2024
1 parent 860d36b commit 9495825
Showing 1 changed file with 20 additions and 20 deletions.
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

0 comments on commit 9495825

Please sign in to comment.