title: Yii CUserIdentity vs a User Model
body: <p>I have at least one model in my Yii project that will need to reference a particular user ID. In my SQL for the model I have something like <code>CONSTRAINT FOREIGN KEY (user_id) REFERENCES User(id)</code>. I was going to go ahead and create a User model when I came across the docs for CUserIdentity. I have to admit I am confused. Is a CUserIdentity a user or a state associated with a particular user-case? I would like to use as much of the built-in Yii features as possible since they handle a lot of security-related issues from what I understand, and I am aware of the existence of some modules like <code>srbac</code> that handle user authentication and registration management. Please guide me in the right direction. (Also at issue: what is the relationship between models and components?)</p>