DEFINE Template for default Fields on tables #5406
man-of-fox
started this conversation in
Ideas
Replies: 2 comments
-
Now I saw a "We need DEFINE LAYER #3992" idea from dkr8toha. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I added a few informations on that post |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I try to create a bigger database model on which nearly every Table needs a created_at and a created_by field. Other Tables needs other default fields like deleted_at and deleted_by because they will only be marked as deleted.
So I thought about a solution for that and came to the following Feature:
DEFINE TEMPLATE <template_name>;
DEFINE FIELD <field_name> ON TEMPLATE <template_name> ...
DEFINE TABLE ... <table_name> ... INCLUDE [TEMPLATE] <template_name>
or possibly multiple templates
DEFINE TABLE ... <table_name> ... INCLUDE [TEMPLATES] [<template_name>, ...]
later changes on the TEMPLATE should also be provided to the tables which includes the template
Do you also think this could be a nice feature?
Beta Was this translation helpful? Give feedback.
All reactions