You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| **Specific Duration** | A valid duration in the format `Xd Xh Xmin Xs Xms` | Sets the field to a specific duration value. For example, `1d 2h 10min 30s 100ms` represents 1 day, 2 hours, 10 minutes, 30 seconds, and 100 milliseconds. |
| **Random UUID** | `random` | Generates a random UUID. On the Dart side, `Uuid().v4obj()` is used. On the database side, `gen_random_uuid()` is used. |
312
-
| **UUID String** | A valid UUID version 4 string | Assigns a specific UUID to the field. |
| **Random UUID** | `random` | Generates a random UUID. On the Dart side, `Uuid().v4obj()` is used. On the database side, `gen_random_uuid()` is used. |
312
+
| **Random UUIDv7** | `random_v7` | Generates a random UUIDv7. On the Dart side, `Uuid().v7obj()` is used. On the database side, a generated `gen_random_uuid_v7()` function is used. |
313
+
| **UUID String** | Valid UUID in the format 'xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx' where M is the UUID version field. The upper two or three bits of digit N encode the variant. E.g. '550e8400-e29b-41d4-a716-446655440000' | Assigns a specific UUID to the field. |
|[**onUpdate**](database/relations/referential-actions)|Set the referential actions when updating data in the database. |✅|||
361
-
|[**onDelete**](database/relations/referential-actions)|Set the referential actions when deleting data in the database. |✅|||
362
-
|[**optional**](database/relations/one-to-one#optional-relation)|A boolean flag to make a relation optional. |✅|||
363
-
|[**indexes**](database/indexing)|Create indexes on your fields / columns. |✅|||
364
-
|[**fields (index)**](database/indexing)|List the fields to create the indexes on. |✅|||
365
-
|[**type (index)**](database/indexing)|The type of index to create. |✅|||
366
-
|[**unique**](database/indexing)|Boolean flag to make the entries unique in the database. |✅|||
367
-
|[**default**](#default-values)|Sets the default value for both the model and the database. This keyword cannot be used with **relation**. |✅|||
368
-
|[**defaultModel**](#default-values)|Sets the default value for the model side. This keyword cannot be used with **relation**. |✅|||
369
-
|[**defaultPersist**](#default-values)|Sets the default value for the database side. This keyword cannot be used with **relation** and **!persist**. |✅|||
|[**values**](#enum) | A special key for enums with a list of all enum values. | | | ✅ |
350
+
|[**serialized**](#enum) | Sets the mode enums are serialized in | | | ✅ |
351
+
|[**serverOnly**](#limiting-visibility-of-a-generated-class) | Boolean flag if code generator only should create the code for the server. | ✅ | ✅ | ✅ |
352
+
|[**table**](database/models) | A name for the database table, enables generation of database code. | ✅ | | |
353
+
|[**managedMigration**](database/migrations#opt-out-of-migrations) | A boolean flag to opt out of the database migration system. | ✅ | | |
354
+
|[**fields**](#class) | All fields in the generated class should be listed here. | ✅ | ✅ | |
355
+
|[**type (fields)**](#class) | Denotes the data type for a field. | ✅ | ✅ | |
356
+
|[**scope**](#limiting-visibility-of-a-generated-class) | Denotes the scope for a field. | ✅ | | |
357
+
|[**persist**](database/models) | A boolean flag if the data should be stored in the database or not can be negated with `!persist` | ✅ | | |
358
+
|[**relation**](database/relations/one-to-one) | Sets a relation between model files, requires a table name to be set. | ✅ | | |
359
+
|[**name**](database/relations/one-to-one#bidirectional-relations) | Give a name to a relation to pair them. | ✅ | | |
360
+
|[**parent**](database/relations/one-to-one#with-an-id-field) | Sets the parent table on a relation. | ✅ | | |
|[**onUpdate**](database/relations/referential-actions) | Set the referential actions when updating data in the database. | ✅ | | |
363
+
|[**onDelete**](database/relations/referential-actions) | Set the referential actions when deleting data in the database. | ✅ | | |
364
+
|[**optional**](database/relations/one-to-one#optional-relation) | A boolean flag to make a relation optional. | ✅ | | |
365
+
|[**indexes**](database/indexing) | Create indexes on your fields / columns. | ✅ | | |
366
+
|[**fields (index)**](database/indexing) | List the fields to create the indexes on. | ✅ | | |
367
+
|[**type (index)**](database/indexing) | The type of index to create. | ✅ | | |
368
+
|[**unique**](database/indexing) | Boolean flag to make the entries unique in the database. | ✅ | | |
369
+
|[**default**](#default-values) | Sets the default value for both the model and the database. This keyword cannot be used with **relation**. |✅|||
370
+
|[**defaultModel**](#default-values) | Sets the default value for the model side. This keyword cannot be used with **relation**. |✅| | |
371
+
|[**defaultPersist**](#default-values) | Sets the default value for the database side. This keyword cannot be used with **relation** and **!persist**. |✅| | |
0 commit comments