❄️ The winter sale is here. 25% off for a limited time. Join us →

Foreign id can be added to the table in several ways


Started this discussion 1 year ago

You can add foreign id in your table like these easily.

  • This method creates an UNSIGNED BIGINT equivalent column:
  • This method adds a {column}_id UNSIGNED BIGINT equivalent column for a given model class (my favorite):
  • This method creates a UUID equivalent column:

If you have any, please reply.


Replied 1 year ago

The whole point of this beta is to test the forum and the functionality. I'm not sure if @alex has plans to keep any of the data during this period, so just be aware of that.


Replied 1 year ago

All useful discussions will be kept. I’m not wiping everything. Sorry if that wasn’t clear :)


Replied 1 year ago

Good to know. Thanks for clarifying! @alex


Replied 1 year ago

@akr4m I think it's all about your design plan.

You can refer to any column as a foreign key.