New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ronin/schema

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ronin/schema - npm Package Compare versions

Comparing version 0.1.4-corny-ron-1071-experimental-15 to 0.1.4-corny-ron-1071-experimental-16

30

dist/index.d.ts

@@ -272,3 +272,9 @@ /**

interface RoninFields {
/**
* The unique identifier for this record.
*/
id: string;
/**
* Contains metadata about the record like creation date, last update, etc.
*/
ronin: string;

@@ -281,7 +287,19 @@ }

interface Model<Fields> extends Omit<PublicModel, 'fields' | 'indexes' | 'triggers' | 'presets'> {
/**
* The fields that make up this model's schema.
*/
fields?: Fields;
/**
* Predefined queries that can be reused across the application.
*/
presets?: Record<string, GetInstructions | WithInstruction>;
/**
* Database indexes to optimize query performance.
*/
indexes?: Array<ModelIndex<Array<ModelField & {
slug: keyof Fields;
}>>>;
/**
* Functions that run automatically in response to database events.
*/
triggers?: Array<ModelTrigger<Array<ModelField & {

@@ -317,6 +335,18 @@ slug: keyof Fields;

interface LinkField {
/**
* Defines referential integrity behavior when linked records are modified.
*/
actions?: {
/**
* Action to take when the referenced record is deleted.
*/
onDelete?: 'cascade' | 'restrict' | 'set null' | 'no action';
/**
* Action to take when the referenced record's key is updated.
*/
onUpdate?: 'cascade' | 'restrict' | 'set null' | 'no action';
};
/**
* The model that this field links to.
*/
model: RoninFields | {

@@ -323,0 +353,0 @@ slug: string;

2

package.json
{
"name": "@ronin/schema",
"version": "0.1.4-corny-ron-1071-experimental-15",
"version": "0.1.4-corny-ron-1071-experimental-16",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Allows for defining the schema of a RONIN database in code.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc