|
There's an easy way and a hard way, and which one you choose depends as much on whether you plan to add any more features any time soon as anything else.
Create Table UserAllowedFeatures (
UserID int foreign key references User (UserID),
Home bit not null,
Gallery bit not null,
Contact bit not null,
Custom bit not null
)
This will let you set a true or false (1 or 0) value telling you whether a user can have the attributes. It's better, though, to have a lookup table like
Create Table Features (
FeatureID int identity primary key,
FeatureName nvarchar(100)
)
And then a permission table, with a UserID, FeatureID, and a boolean do they have permission column. When you change the list of what's available, it will be far easier.
The rest of your question, I'm not really sure how to answer. I get that galleries are grouped into albums and that users can have unlimited numbers of custom web sites, but, I don't know what information you want to store about all of this?
|