{"tables":[{"tableName":"users","fields":[{"fieldName":"id","dataType":"BIGINT","primaryKey":true,"autoIncrement":true,"notNullValue":true,"fieldDescription":"The unique identifier of the record."},{"fieldName":"created_at","dataType":"BIGINT","fieldDescription":"The time when the record was created. (Unix Timestamp)"},{"fieldName":"updated_at","dataType":"BIGINT","fieldDescription":"The time when the record was updated. (Unix Timestamp)"},{"fieldName":"first_name","dataType":"VARCHAR","dataLength":255},{"fieldName":"last_name","dataType":"VARCHAR","dataLength":255},{"fieldName":"email","dataType":"VARCHAR","dataLength":255,"unique":true},{"fieldName":"username","dataType":"VARCHAR","dataLength":255,"unique":true},{"fieldName":"bio","dataType":"LONGTEXT","html":true},{"fieldName":"archived","dataType":"TINYINT","options":[0,1],"defaultValue":0}]},{"tableName":"user_types","fields":[{"fieldName":"id","dataType":"BIGINT","primaryKey":true,"autoIncrement":true,"notNullValue":true,"fieldDescription":"The unique identifier of the record."},{"fieldName":"created_at","dataType":"BIGINT","fieldDescription":"The time when the record was created. (Unix Timestamp)"},{"fieldName":"updated_at","dataType":"BIGINT","fieldDescription":"The time when the record was updated. (Unix Timestamp)"},{"fieldName":"user_id","dataType":"BIGINT"},{"fieldName":"user_type","dataType":"ENUM","options":["super_admin","admin","auditor","president","vice_president","secretary","orphan","revoked","read_only","board_member"]}]},{"tableName":"sso_login_codes","fields":[{"fieldName":"id","dataType":"BIGINT","primaryKey":true,"autoIncrement":true,"notNullValue":true,"fieldDescription":"The unique identifier of the record."},{"fieldName":"created_at","dataType":"BIGINT","fieldDescription":"The time when the record was created. (Unix Timestamp)"},{"fieldName":"updated_at","dataType":"BIGINT","fieldDescription":"The time when the record was updated. (Unix Timestamp)"},{"fieldName":"user_id","dataType":"BIGINT","unique":true},{"fieldName":"code","dataType":"TEXT"}]},{"tableName":"media","fields":[{"fieldName":"id","dataType":"BIGINT","primaryKey":true,"autoIncrement":true,"notNullValue":true,"fieldDescription":"The unique identifier of the record."},{"fieldName":"created_at","dataType":"BIGINT","fieldDescription":"The time when the record was created. (Unix Timestamp)"},{"fieldName":"updated_at","dataType":"BIGINT","fieldDescription":"The time when the record was updated. (Unix Timestamp)"},{"fieldName":"user_id","dataType":"BIGINT"},{"fieldName":"title","dataType":"TEXT"},{"fieldName":"description","dataType":"TEXT"},{"fieldName":"summary","dataType":"TEXT"},{"fieldName":"media_type","dataType":"TEXT","options":["image","video","document"]},{"fieldName":"media_write_path","dataType":"TEXT"},{"fieldName":"media_thumbnail_write_path","dataType":"TEXT"},{"fieldName":"mime_type","dataType":"TEXT"},{"fieldName":"text_content","dataType":"TEXT"},{"fieldName":"is_primary","dataType":"TINYINT","options":[0,1]},{"fieldName":"is_rag_ingested","dataType":"TINYINT","options":[0,1]},{"fieldName":"is_private","dataType":"TINYINT","options":[0,1]},{"fieldName":"archived","dataType":"TINYINT","options":[0,1]}],"uniqueConstraints":[{"alias":"one_user_per_primary_profile_image","constraintName":"One User per primary profile image","constraintTableFields":[{"value":"user_id"},{"value":"is_primary"}]}]},{"tableName":"media_paradigms","fields":[{"fieldName":"id","dataType":"BIGINT","primaryKey":true,"autoIncrement":true,"notNullValue":true,"fieldDescription":"The unique identifier of the record."},{"fieldName":"created_at","dataType":"BIGINT","fieldDescription":"The time when the record was created. (Unix Timestamp)"},{"fieldName":"updated_at","dataType":"BIGINT","fieldDescription":"The time when the record was updated. (Unix Timestamp)"},{"fieldName":"media_id","dataType":"BIGINT","foreignKey":{"cascadeDelete":true,"destinationTableName":"media","destinationTableColumnName":"id","destinationTableColumnType":"BIGINT","foreignKeyName":"media_paradigm_media_fk"}},{"fieldName":"media_paradigm","dataType":"ENUM","options":["user-profile-image","generic","event"]}]}]}