我现在正在为一个基于“人才”的应用程序设计数据库,例如:
ModelsActorsSingersDancersMusicians
我昨天开始了一个类似的问题,并在回答中取得了一些进展,但我认为现在开始一个新的问题会更容易一些。所以这就是我目前所拥有的:
Table talent:
- id
- name
Table subtalent:
- id
- name
- talent_id (FK)
Table user:
- id
- name
任何在网站上注册的用户都可以为这些天赋中的一个或多个创建一个配置文件。一个天才可以有次天赋,例如,一个演员可以是一个电视演员,一个戏剧演员或一个
例如,给定以下结构,我希望某些字段仅对合同所有者可见
struct Participant{
address participantAddress; // can be seen by anyone
string team; // can be seen by anyone
string personalDescription; // can be seen by anyone
string secret // can be seen only by contract owner
}
// Mapping each participant to an u