Retoca las migraciones principales

This commit is contained in:
Manuel Cillero 2022-04-25 20:57:36 +02:00
parent f30f84e993
commit 42a4731bdd
8 changed files with 29 additions and 32 deletions

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
#[derive(Iden)]
enum NodeType {
Table, // Stores information about all defined Node types.
Table, // node_type: Stores information about all defined Node types.
Type, // The machine-readable name of this type.
Name, // The human-readable name of this type.

View file

@ -2,14 +2,14 @@ use pagetop::prelude::*;
#[derive(Iden)]
enum Node {
Table, // The base table for nodes.
Table, // node: The base table for nodes.
Nid, // The primary identifier for a node.
Vid, // The current {node_revision}.vid version identifier.
Type, // The {node_type}.type of this node.
Vid, // The current NodeRevision.vid version identifier.
Type, // The NodeType.type of this node.
Language, // The {languages}.language of this node.
Title, // The title of this node, always treated as non-markup plain text.
Uid, // The {users}.uid that owns this node; initially, this is the user that
Uid, // The User.uid that owns this node; initially, this is the user that
// created it.
Status, // Boolean indicating whether the node is published (visible to
// non-administrators).

View file

@ -2,10 +2,10 @@ use pagetop::prelude::*;
#[derive(Iden)]
enum NodeAccess {
Table, // Identifies which realm/grant pairs a user must possess in order to view,
// update, or delete specific nodes.
Table, // node_access: Identifies which realm/grant pairs a user must possess in
// order to view, update, or delete specific nodes.
Nid, // The {node}.nid this record affects.
Nid, // The Node.nid this record affects.
Gid, // The grant ID a user must possess in the specified realm to gain this
// row's privileges on the node.
Realm, // The realm in which the user must possess the grant ID. Each node access

View file

@ -2,11 +2,11 @@ use pagetop::prelude::*;
#[derive(Iden)]
enum NodeRevision {
Table, // Stores information about each saved version of a {node}.
Table, // node_revision: Stores information about each saved version of a Node.
Nid, // The {node} this version belongs to.
Nid, // The Node this version belongs to.
Vid, // The primary identifier for this version.
Uid, // The {users}.uid that created this version.
Uid, // The User.uid that created this version.
Title, // The title of this version.
Log, // The log entry explaining the changes in this version.
Timestamp, // A Unix timestamp indicating when this version was created.