jiff for table definition added

This commit is contained in:
Priec
2026-07-18 17:32:41 +02:00
parent f5b826bb8f
commit ef751e241f
7 changed files with 110 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ service AuthService {
rpc Register(RegisterRequest) returns (AuthResponse);
rpc Login(LoginRequest) returns (LoginResponse);
rpc GetAuthorization(GetAuthorizationRequest) returns (AuthorizationSnapshot);
rpc SetTimezone(SetTimezoneRequest) returns (UserPreferences);
}
message RegisterRequest {
@@ -38,6 +39,15 @@ message LoginResponse {
string role = 5; // User's role
string username = 6;
AuthorizationSnapshot authorization = 7;
string timezone = 8;
}
message SetTimezoneRequest {
string timezone = 1; // IANA timezone, for example Europe/Bratislava
}
message UserPreferences {
string timezone = 1;
}
message GetAuthorizationRequest {}

View File

@@ -120,11 +120,16 @@ message ColumnDefinition {
// Logical column type. Supported values (case-insensitive):
// TEXT
// BOOLEAN
// TIMESTAMPTZ
// INSTANT (absolute timestamp, displayed in the viewer timezone)
// USER_DATETIME (local input resolved in the user's timezone)
// RAW_DATETIME (timezone-free civil datetime)
// TIME (timezone-free time of day)
// MONEY (= unconstrained NUMERIC; currency comes from the table)
// INT
// BIGINT
// DATE
// DURATION
// PERIOD
// DECIMAL(p,s) → NUMERIC(p,s)
// DECIMAL args must be integers (no sign, no dot, no leading zeros);
// s ≤ p and p ≥ 1.