FK columns can be directly referenced from now on
This commit is contained in:
@@ -11,7 +11,9 @@ pub struct PostTableDefinitionRequest {
|
||||
/// two are named side by side. The "\_id" suffix is allowed.
|
||||
#[prost(string, tag = "1")]
|
||||
pub table_name: ::prost::alloc::string::String,
|
||||
/// The table's columns, including its links. System columns are added on top.
|
||||
/// The table's columns, including its links and stored linked projections.
|
||||
/// A projection uses field_type FROM(link_column.source_column); its physical
|
||||
/// type and money metadata are inferred from the linked source column.
|
||||
#[prost(message, repeated, tag = "3")]
|
||||
pub columns: ::prost::alloc::vec::Vec<ColumnDefinition>,
|
||||
/// Column names to index, matching names declared above. System columns
|
||||
@@ -102,6 +104,7 @@ pub struct AddTableColumnsRequest {
|
||||
#[prost(string, tag = "2")]
|
||||
pub table_name: ::prost::alloc::string::String,
|
||||
/// New user-defined columns only. Existing columns cannot be changed here.
|
||||
/// Stored linked projections use field_type FROM(link_column.source_column).
|
||||
#[prost(message, repeated, tag = "3")]
|
||||
pub columns: ::prost::alloc::vec::Vec<ColumnDefinition>,
|
||||
/// Optional indexes for the new columns only.
|
||||
@@ -147,6 +150,9 @@ pub struct ColumnDefinition {
|
||||
/// LINK(table) → BIGINT referencing that table in the same profile, indexed
|
||||
/// automatically. A table may hold several links to the same
|
||||
/// target as long as the columns are named differently.
|
||||
/// FROM(link.source) → stored, read-only copy of an atomic column reached
|
||||
/// through another column in this definition whose type is
|
||||
/// LINK(...). SQL type and money metadata are inferred.
|
||||
/// DECIMAL args must be integers (no sign, no dot, no leading zeros);
|
||||
/// s ≤ p and p ≥ 1.
|
||||
#[prost(string, tag = "2")]
|
||||
|
||||
Reference in New Issue
Block a user