Should the foreign key constraints only be declared in the Model code of the application, or in both the code and the database? -- "Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats." -- Howard Aiken